use of com.navercorp.pinpoint.rpc.ResponseMessage in project pinpoint by naver.
the class DefaultPinpointClient method returnFailureFuture.
private Future<ResponseMessage> returnFailureFuture() {
DefaultFuture<ResponseMessage> future = new DefaultFuture<ResponseMessage>();
future.setFailure(new PinpointSocketException("pinpointClientHandler is null"));
return future;
}
use of com.navercorp.pinpoint.rpc.ResponseMessage in project pinpoint by naver.
the class RequestManager method messageReceived.
public void messageReceived(ResponsePacket responsePacket, String objectUniqName) {
final int requestId = responsePacket.getRequestId();
final DefaultFuture<ResponseMessage> future = removeMessageFuture(requestId);
if (future == null) {
logger.warn("future not found:{}, objectUniqName:{}", responsePacket, objectUniqName);
return;
} else {
logger.debug("responsePacket arrived packet:{}, objectUniqName:{}", responsePacket, objectUniqName);
}
ResponseMessage response = new ResponseMessage();
response.setMessage(responsePacket.getPayload());
future.setResult(response);
}
Aggregations