Search in sources :

Example 6 with LoadedClassBo

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

the class GrpcLoadedClassBoMapper method map.

@Override
public void map(AgentStatBo.Builder.StatBuilder builder, PAgentStat agentStat) {
    // loadedClass
    if (agentStat.hasLoadedClass()) {
        final PLoadedClass loadedClass = agentStat.getLoadedClass();
        final LoadedClassBo loadedClassBo = this.map(loadedClass);
        builder.addLoadedClass(loadedClassBo);
    }
}
Also used : PLoadedClass(com.navercorp.pinpoint.grpc.trace.PLoadedClass) LoadedClassBo(com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo)

Example 7 with LoadedClassBo

use of com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo 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)

Example 8 with LoadedClassBo

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

the class ThriftLoadedClassBoMapper method map.

@Override
public LoadedClassBo map(TLoadedClass thriftObject) {
    LoadedClassBo loadedClassBo = new LoadedClassBo();
    loadedClassBo.setLoadedClassCount(thriftObject.getLoadedClassCount());
    loadedClassBo.setUnloadedClassCount(thriftObject.getUnloadedClassCount());
    return loadedClassBo;
}
Also used : LoadedClassBo(com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo)

Aggregations

LoadedClassBo (com.navercorp.pinpoint.common.server.bo.stat.LoadedClassBo)8 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)2 SampledLoadedClassCount (com.navercorp.pinpoint.web.vo.stat.SampledLoadedClassCount)2 PLoadedClass (com.navercorp.pinpoint.grpc.trace.PLoadedClass)1 TFLoadedClass (com.navercorp.pinpoint.thrift.dto.flink.TFLoadedClass)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 Test (org.junit.Test)1