use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class GrpcTotalThreadCountBoMapper method map.
public TotalThreadCountBo map(final PTotalThread tTotalThread) {
final TotalThreadCountBo totalThreadCountBo = new TotalThreadCountBo();
totalThreadCountBo.setTotalThreadCount(tTotalThread.getTotalThreadCount());
return totalThreadCountBo;
}
use of com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo in project pinpoint by naver.
the class TFAgentStatMapperTest method createTotalThreadCountBoList.
private AgentStatBo createTotalThreadCountBoList() {
AgentStatBo.Builder builder = newBuilder();
TotalThreadCountBo totalThreadCountBo1 = new TotalThreadCountBo();
totalThreadCountBo1.setAgentId(TEST_AGENT);
totalThreadCountBo1.setTimestamp(collectTime1st);
totalThreadCountBo1.setStartTimestamp(startTimestamp);
totalThreadCountBo1.setTotalThreadCount(4);
AgentStatBo.Builder.StatBuilder statBuilder1 = builder.newStatBuilder(collectTime1st);
statBuilder1.addTotalThreadCount(totalThreadCountBo1);
TotalThreadCountBo totalThreadCountBo2 = new TotalThreadCountBo();
totalThreadCountBo2.setTotalThreadCount(5);
AgentStatBo.Builder.StatBuilder statBuilder2 = builder.newStatBuilder(collectTime2nd);
statBuilder2.addTotalThreadCount(totalThreadCountBo2);
TotalThreadCountBo totalThreadCountBo3 = new TotalThreadCountBo();
totalThreadCountBo3.setTotalThreadCount(8);
AgentStatBo.Builder.StatBuilder statBuilder3 = builder.newStatBuilder(collectTime3rd);
statBuilder3.addTotalThreadCount(totalThreadCountBo3);
return builder.build();
}
Aggregations