Search in sources :

Example 1 with SampledLoadedClassCount

use of com.navercorp.pinpoint.web.vo.stat.SampledLoadedClassCount in project pinpoint by naver.

the class LoadedClassSampler method sampleDataPoints.

@Override
public SampledLoadedClassCount sampleDataPoints(int timeWindowIndex, long timestamp, List<LoadedClassBo> dataPoints, LoadedClassBo previousDataPoint) {
    final AgentStatPoint<Long> loadedClassCount = newAgentStatPoint(timestamp, dataPoints, LoadedClassBo::getLoadedClassCount);
    final AgentStatPoint<Long> unloadedClassCount = newAgentStatPoint(timestamp, dataPoints, LoadedClassBo::getUnloadedClassCount);
    SampledLoadedClassCount sampledLoadedClassCount = new SampledLoadedClassCount(loadedClassCount, unloadedClassCount);
    return sampledLoadedClassCount;
}
Also used : LoadedClassBo(com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo) SampledLoadedClassCount(com.navercorp.pinpoint.web.vo.stat.SampledLoadedClassCount)

Example 2 with SampledLoadedClassCount

use of com.navercorp.pinpoint.web.vo.stat.SampledLoadedClassCount in project pinpoint by naver.

the class HbaseSampledLoadedClassDaoV2 method getSampledAgentStatList.

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

Aggregations

LoadedClassBo (com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo)2 SampledLoadedClassCount (com.navercorp.pinpoint.web.vo.stat.SampledLoadedClassCount)2 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1