Search in sources :

Example 1 with AgentActiveThreadCountFactory

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());
    }
}
Also used : AgentActiveThreadCountFactory(com.navercorp.pinpoint.web.vo.AgentActiveThreadCountFactory) TCmdActiveThreadCountRes(com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadCountRes) TRouteResult(com.navercorp.pinpoint.thrift.dto.command.TRouteResult)

Aggregations

TCmdActiveThreadCountRes (com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadCountRes)1 TRouteResult (com.navercorp.pinpoint.thrift.dto.command.TRouteResult)1 AgentActiveThreadCountFactory (com.navercorp.pinpoint.web.vo.AgentActiveThreadCountFactory)1