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);
}
}
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);
}
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;
}
Aggregations