Search in sources :

Example 6 with TotalThreadCountBo

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;
}
Also used : TotalThreadCountBo(com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo)

Example 7 with 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();
}
Also used : AgentStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo) TotalThreadCountBo(com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo)

Aggregations

TotalThreadCountBo (com.navercorp.pinpoint.common.server.bo.stat.TotalThreadCountBo)7 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)2 PTotalThread (com.navercorp.pinpoint.grpc.trace.PTotalThread)1 TFTotalThreadCount (com.navercorp.pinpoint.thrift.dto.flink.TFTotalThreadCount)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 SampledTotalThreadCount (com.navercorp.pinpoint.web.vo.stat.SampledTotalThreadCount)1 Test (org.junit.Test)1