@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
@Override void sendMessage(final FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, result); } });
@Override void sendMessage(FlushableDataOutput output) throws IOException { sendResponse(output, DomainControllerProtocol.PARAM_OK, extensions); } });
void sendCompletedMessage() { if(completed.compareAndSet(false, true)) { try { sendResponse(responseChannel, DomainControllerProtocol.PARAM_OK, null); } catch (IOException e) { DOMAIN_LOGGER.debugf(e, "failed to process message"); } activeOperation.getResultHandler().done(null); } }
void sendCompletedMessage() { if(completed.compareAndSet(false, true)) { try { sendResponse(responseChannel, DomainControllerProtocol.PARAM_OK, null); } catch (IOException e) { DOMAIN_LOGGER.debugf(e, "failed to process message"); } activeOperation.getResultHandler().done(null); } }
void sendCompletedMessage() { if(completed.compareAndSet(false, true)) { try { sendResponse(responseChannel, DomainControllerProtocol.PARAM_OK, null); } catch (IOException e) { ProtocolLogger.ROOT_LOGGER.debugf(e, "failed to process message"); } activeOperation.getResultHandler().done(null); } }
/** * Send an operation response. * * @param context the request context * @param responseType the response type * @param response the operation response * @throws IOException for any error */ static void sendResponse(final ManagementRequestContext<RegistrationContext> context, final byte responseType, final ModelNode response) throws IOException { final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader()); final FlushableDataOutput output = context.writeMessage(header); try { sendResponse(output, responseType, response); } finally { StreamUtils.safeClose(output); } }
/** * Send a operation response. * * @param context the request context * @param responseType the response type * @param response the operation response * @throws IOException for any error */ static void sendResponse(final ManagementRequestContext<RegistrationContext> context, final byte responseType, final ModelNode response) throws IOException { final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader()); final FlushableDataOutput output = context.writeMessage(header); try { sendResponse(output, responseType, response); } finally { StreamUtils.safeClose(output); } }
/** * Send an operation response. * * @param context the request context * @param responseType the response type * @param response the operation response * @throws IOException for any error */ static void sendResponse(final ManagementRequestContext<RegistrationContext> context, final byte responseType, final ModelNode response) throws IOException { final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader()); final FlushableDataOutput output = context.writeMessage(header); try { sendResponse(output, responseType, response); } finally { StreamUtils.safeClose(output); } }