use of com.navercorp.pinpoint.collector.cluster.route.RequestEvent in project pinpoint by naver.
the class ClusterPointRouter method handleRouteRequest.
private boolean handleRouteRequest(TCommandTransfer request, RequestPacket requestPacket, PinpointSocket pinpointSocket) {
byte[] payload = ((TCommandTransfer) request).getPayload();
TBase<?, ?> command = deserialize(payload);
TCommandTransferResponse response = routeHandler.onRoute(new RequestEvent((TCommandTransfer) request, pinpointSocket.getRemoteAddress(), requestPacket.getRequestId(), command));
pinpointSocket.response(requestPacket, serialize(response));
return response.getRouteResult() == TRouteResult.OK;
}
Aggregations