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