Search in sources :

Example 1 with ProtocolException

use of com.navercorp.pinpoint.rpc.control.ProtocolException in project pinpoint by naver.

the class DefaultPinpointServer method sendHandshakeResponse0.

private void sendHandshakeResponse0(int requestId, Map<String, Object> data) {
    try {
        byte[] resultPayload = ControlMessageEncodingUtils.encode(data);
        ControlHandshakeResponsePacket packet = new ControlHandshakeResponsePacket(requestId, resultPayload);
        write0(packet);
    } catch (ProtocolException e) {
        logger.warn(e.getMessage(), e);
    }
}
Also used : ControlHandshakeResponsePacket(com.navercorp.pinpoint.rpc.packet.ControlHandshakeResponsePacket) ProtocolException(com.navercorp.pinpoint.rpc.control.ProtocolException)

Aggregations

ProtocolException (com.navercorp.pinpoint.rpc.control.ProtocolException)1 ControlHandshakeResponsePacket (com.navercorp.pinpoint.rpc.packet.ControlHandshakeResponsePacket)1