Search in sources :

Example 11 with ResponseMessage

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;
}
Also used : PinpointSocketException(com.navercorp.pinpoint.rpc.PinpointSocketException) ResponseMessage(com.navercorp.pinpoint.rpc.ResponseMessage) DefaultFuture(com.navercorp.pinpoint.rpc.DefaultFuture)

Example 12 with ResponseMessage

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);
}
Also used : ResponseMessage(com.navercorp.pinpoint.rpc.ResponseMessage)

Aggregations

ResponseMessage (com.navercorp.pinpoint.rpc.ResponseMessage)12 PinpointSocketException (com.navercorp.pinpoint.rpc.PinpointSocketException)4 DefaultFuture (com.navercorp.pinpoint.rpc.DefaultFuture)2 FutureListener (com.navercorp.pinpoint.rpc.FutureListener)2 PinpointSocket (com.navercorp.pinpoint.rpc.PinpointSocket)2 PinpointServerAcceptor (com.navercorp.pinpoint.rpc.server.PinpointServerAcceptor)2 TResult (com.navercorp.pinpoint.thrift.dto.TResult)2 TCommandTransfer (com.navercorp.pinpoint.thrift.dto.command.TCommandTransfer)2 HeaderTBaseDeserializer (com.navercorp.pinpoint.thrift.io.HeaderTBaseDeserializer)2 DefaultPinpointRouteResponse (com.navercorp.pinpoint.web.cluster.DefaultPinpointRouteResponse)2 FailedPinpointRouteResponse (com.navercorp.pinpoint.web.cluster.FailedPinpointRouteResponse)2 PinpointRouteResponse (com.navercorp.pinpoint.web.cluster.PinpointRouteResponse)2 IOException (java.io.IOException)2 TBase (org.apache.thrift.TBase)2 TargetClusterPoint (com.navercorp.pinpoint.collector.cluster.TargetClusterPoint)1 ChannelWriteFailListenableFuture (com.navercorp.pinpoint.rpc.ChannelWriteFailListenableFuture)1 FailureEventHandler (com.navercorp.pinpoint.rpc.FailureEventHandler)1 Future (com.navercorp.pinpoint.rpc.Future)1 AgentInfo (com.navercorp.pinpoint.web.vo.AgentInfo)1 HashMap (java.util.HashMap)1