use of com.navercorp.pinpoint.web.cluster.DefaultPinpointRouteResponse in project pinpoint by naver.
the class AgentServiceImpl method getResponse.
private PinpointRouteResponse getResponse(Future<ResponseMessage> future, long timeout) {
if (future == null) {
return new FailedPinpointRouteResponse(TRouteResult.NOT_FOUND, null);
}
boolean completed = future.await(timeout);
if (completed) {
DefaultPinpointRouteResponse response = new DefaultPinpointRouteResponse(future.getResult().getMessage());
response.parse(commandDeserializerFactory);
return response;
} else {
return new FailedPinpointRouteResponse(TRouteResult.TIMEOUT, null);
}
}
Aggregations