use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class TFTotalThreadCountMapper method build.
@Override
public void build(TFAgentStatMapper.TFAgentStatBuilder builder) {
AgentStatBo agentStat = builder.getAgentStat();
List<TotalThreadCountBo> totalThreadCountList = agentStat.getTotalThreadCountBos();
builder.build(totalThreadCountList, this);
}
use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class GrpcTotalThreadCountBoMapper method map.
@Override
public void map(AgentStatBo.Builder.StatBuilder builder, PAgentStat agentStat) {
// totalThreadCount
if (agentStat.hasTotalThread()) {
final PTotalThread totalThread = agentStat.getTotalThread();
final TotalThreadCountBo totalThreadCountBo = this.map(totalThread);
builder.addTotalThreadCount(totalThreadCountBo);
}
}
use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class ThriftTotalThreadCountBoMapper method map.
@Override
public TotalThreadCountBo map(TTotalThreadCount thriftObject) {
TotalThreadCountBo totalThreadCountBo = new TotalThreadCountBo();
totalThreadCountBo.setTotalThreadCount(thriftObject.getTotalThreadCount());
return totalThreadCountBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class HBaseSampledTotalThreadCountDaoV2 method getSampledAgentStatList.
@Override
public List<SampledTotalThreadCount> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
long scanFrom = timeWindow.getWindowRange().getFrom();
long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
Range range = Range.newRange(scanFrom, scanTo);
AgentStatMapperV2<TotalThreadCountBo> mapper = operations.createRowMapper(totalThreadCountDecoder, range);
SampledAgentStatResultExtractor<TotalThreadCountBo, SampledTotalThreadCount> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, totalThreadCountSampler);
return operations.getSampledAgentStatList(AgentStatType.TOTAL_THREAD, resultExtractor, agentId, range);
}
use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class TFTotalThreadCountMapperTest method mapTest.
@Test
public void mapTest() {
TFTotalThreadCountMapper mapper = new TFTotalThreadCountMapper();
TotalThreadCountBo totalThreadCountBo = new TotalThreadCountBo();
totalThreadCountBo.setTotalThreadCount(50);
TFTotalThreadCount tfTotalThreadCount = mapper.map(totalThreadCountBo);
assertEquals(tfTotalThreadCount.getTotalThreadCount(), 50);
}
Aggregations