Search in sources :

Example 1 with ResponseTimeBo

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

the class GrpcResponseTimeBoMapper method map.

@Override
public void map(AgentStatBo.Builder.StatBuilder builder, PAgentStat agentStat) {
    // response time
    if (agentStat.hasResponseTime()) {
        final PResponseTime responseTime = agentStat.getResponseTime();
        final ResponseTimeBo responseTimeBo = this.map(responseTime);
        builder.addResponseTime(responseTimeBo);
    }
}
Also used : PResponseTime(com.navercorp.pinpoint.grpc.trace.PResponseTime) ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 2 with ResponseTimeBo

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

the class TFAgentStatMapperTest method createResponseTimeBoList.

private AgentStatBo createResponseTimeBoList() {
    AgentStatBo.Builder builder = newBuilder();
    ResponseTimeBo responseTimeBo1 = new ResponseTimeBo();
    responseTimeBo1.setAvg(1000);
    AgentStatBo.Builder.StatBuilder statBuilder1 = builder.newStatBuilder(collectTime1st);
    statBuilder1.addResponseTime(responseTimeBo1);
    ResponseTimeBo responseTimeBo2 = new ResponseTimeBo();
    responseTimeBo2.setAvg(2000);
    AgentStatBo.Builder.StatBuilder statBuilder2 = builder.newStatBuilder(collectTime2nd);
    statBuilder2.addResponseTime(responseTimeBo2);
    return builder.build();
}
Also used : AgentStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo) ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 3 with ResponseTimeBo

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

the class ThriftResponseTimeBoMapper method map.

@Override
public void map(AgentStatBo.Builder.StatBuilder agentStatBo, TAgentStat tAgentStat) {
    // response time
    if (tAgentStat.isSetResponseTime()) {
        ResponseTimeBo responseTimeBo = this.map(tAgentStat.getResponseTime());
        agentStatBo.addResponseTime(responseTimeBo);
    }
}
Also used : ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 4 with ResponseTimeBo

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

the class ThriftResponseTimeBoMapper method map.

@Override
public ResponseTimeBo map(TResponseTime tResponseTime) {
    ResponseTimeBo responseTimeBo = new ResponseTimeBo();
    responseTimeBo.setAvg(tResponseTime.getAvg());
    responseTimeBo.setMax(tResponseTime.getMax());
    return responseTimeBo;
}
Also used : ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 5 with ResponseTimeBo

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

the class TFResponseTimeMapperTest method mapTest.

@Test
public void mapTest() {
    TFResponseTimeMapper mapper = new TFResponseTimeMapper();
    ResponseTimeBo responseTimeBo = new ResponseTimeBo();
    responseTimeBo.setAvg(50);
    TFResponseTime tFResponseTime = mapper.map(responseTimeBo);
    assertEquals(tFResponseTime.getAvg(), 50);
}
Also used : ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo) TFResponseTime(com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime) Test(org.junit.Test)

Aggregations

ResponseTimeBo (com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)9 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)2 PResponseTime (com.navercorp.pinpoint.grpc.trace.PResponseTime)1 TFResponseTime (com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 Point (com.navercorp.pinpoint.web.vo.chart.Point)1 SampledResponseTime (com.navercorp.pinpoint.web.vo.stat.SampledResponseTime)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1