use of com.navercorp.pinpoint.web.vo.AgentActiveThreadCountFactory in project pinpoint by naver.
the class AgentServiceImpl method createActiveThreadCount.
private AgentActiveThreadCount createActiveThreadCount(String agentId, PinpointRouteResponse response) {
TRouteResult routeResult = response.getRouteResult();
if (routeResult == TRouteResult.OK) {
AgentActiveThreadCountFactory factory = new AgentActiveThreadCountFactory();
factory.setAgentId(agentId);
return factory.create(response.getResponse(TCmdActiveThreadCountRes.class, null));
} else {
AgentActiveThreadCountFactory factory = new AgentActiveThreadCountFactory();
factory.setAgentId(agentId);
return factory.createFail(routeResult.name());
}
}
Aggregations