Search in sources :

Example 6 with DirectBufferBo

use of com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo in project pinpoint by naver.

the class DirectBufferSampler method sampleDataPoints.

@Override
public SampledDirectBuffer sampleDataPoints(int timeWindowIndex, long timestamp, List<DirectBufferBo> dataPoints, DirectBufferBo previousDataPoint) {
    final AgentStatPoint<Long> directCount = newAgentStatPoint(timestamp, dataPoints, DirectBufferBo::getDirectCount);
    final AgentStatPoint<Long> directMemoryUsed = newAgentStatPoint(timestamp, dataPoints, DirectBufferBo::getDirectMemoryUsed);
    final AgentStatPoint<Long> mappedCount = newAgentStatPoint(timestamp, dataPoints, DirectBufferBo::getMappedCount);
    final AgentStatPoint<Long> mappedMemoryUsed = newAgentStatPoint(timestamp, dataPoints, DirectBufferBo::getMappedMemoryUsed);
    SampledDirectBuffer sampledDirectBuffer = new SampledDirectBuffer(directCount, directMemoryUsed, mappedCount, mappedMemoryUsed);
    return sampledDirectBuffer;
}
Also used : SampledDirectBuffer(com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer) DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Example 7 with DirectBufferBo

use of com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo in project pinpoint by naver.

the class TFDirectBufferMapper method build.

@Override
public void build(TFAgentStatMapper.TFAgentStatBuilder builder) {
    AgentStatBo agentStat = builder.getAgentStat();
    List<DirectBufferBo> directBufferList = agentStat.getDirectBufferBos();
    builder.build(directBufferList, this);
}
Also used : AgentStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo) DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Example 8 with DirectBufferBo

use of com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo in project pinpoint by naver.

the class HbaseSampledDirectBufferDaoV2 method getSampledAgentStatList.

@Override
public List<SampledDirectBuffer> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = Range.newRange(scanFrom, scanTo);
    AgentStatMapperV2<DirectBufferBo> mapper = operations.createRowMapper(directBufferDecoder, range);
    SampledAgentStatResultExtractor<DirectBufferBo, SampledDirectBuffer> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, directBufferSampler);
    return operations.getSampledAgentStatList(AgentStatType.DIRECT_BUFFER, resultExtractor, agentId, range);
}
Also used : SampledDirectBuffer(com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer) SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) Range(com.navercorp.pinpoint.web.vo.Range) DirectBufferBo(com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)

Aggregations

DirectBufferBo (com.navercorp.pinpoint.common.server.bo.stat.DirectBufferBo)8 SampledDirectBuffer (com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer)2 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)1 PDirectBuffer (com.navercorp.pinpoint.grpc.trace.PDirectBuffer)1 TFDirectBuffer (com.navercorp.pinpoint.thrift.dto.flink.TFDirectBuffer)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 Test (org.junit.Test)1