/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param activeRequest the active request */ protected <T, A> void handleRequest(final Channel channel, final DataInput message, final ManagementProtocolHeader header, ActiveRequest<T, A> activeRequest) { handleMessage(channel, message, header, activeRequest.context, activeRequest.handler); }
/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param activeRequest the active request */ protected <T, A> void handleRequest(final Channel channel, final DataInput message, final ManagementProtocolHeader header, ActiveRequest<T, A> activeRequest) { handleMessage(channel, message, header, activeRequest.context, activeRequest.handler); }
/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param activeRequest the active request */ protected <T, A> void handleRequest(final Channel channel, final DataInput message, final ManagementProtocolHeader header, ActiveRequest<T, A> activeRequest) { handleMessage(channel, message, header, activeRequest.context, activeRequest.handler); }
/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param handler the request handler * @throws IOException */ protected <T, A> void handleMessage(final Channel channel, final DataInput message, final ManagementRequestHeader header, ManagementRequestHandler<T, A> handler) throws IOException { final ActiveOperation<T, A> support = getActiveOperation(header); if(support == null) { throw ProtocolMessages.MESSAGES.responseHandlerNotFound(header.getBatchId()); } handleMessage(channel, message, header, support, handler); }
/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param handler the request handler * @throws IOException */ protected <T, A> void handleMessage(final Channel channel, final DataInput message, final ManagementRequestHeader header, ManagementRequestHandler<T, A> handler) throws IOException { final ActiveOperation<T, A> support = getActiveOperation(header); if(support == null) { throw ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(header.getBatchId()); } handleMessage(channel, message, header, support, handler); }
/** * Handle a message. * * @param channel the channel * @param message the message * @param header the protocol header * @param handler the request handler * @throws IOException */ protected <T, A> void handleMessage(final Channel channel, final DataInput message, final ManagementRequestHeader header, ManagementRequestHandler<T, A> handler) throws IOException { final ActiveOperation<T, A> support = getActiveOperation(header); if(support == null) { throw ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(header.getBatchId()); } handleMessage(channel, message, header, support, handler); }
safeWriteErrorResponse(channel, header, ProtocolMessages.MESSAGES.responseHandlerNotFound(requestHeader.getBatchId())); } else { handleMessage(channel, input, requestHeader, handler);
safeWriteErrorResponse(channel, header, ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(requestHeader.getBatchId())); } else { handleMessage(channel, input, requestHeader, handler);
safeWriteErrorResponse(channel, header, ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(requestHeader.getBatchId())); } else { handleMessage(channel, input, requestHeader, handler);