use of com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer 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;
}
use of com.navercorp.pinpoint.web.vo.stat.SampledDirectBuffer 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);
}
Aggregations