Class TransactionalProtocolOperationHandler

  • All Implemented Interfaces:
    org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory

    public class TransactionalProtocolOperationHandler
    extends Object
    implements org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
    The transactional request handler for a remote TransactionalProtocolClient.
    Author:
    Kabir Khan, Emanuel Muckenhuber, Darran Lofthouse
    • Constructor Detail

      • TransactionalProtocolOperationHandler

        public TransactionalProtocolOperationHandler​(ModelController controller,
                                                     org.jboss.as.protocol.mgmt.ManagementChannelAssociation channelAssociation,
                                                     ResponseAttachmentInputStreamSupport responseAttachmentSupport)
    • Method Detail

      • resolveHandler

        public org.jboss.as.protocol.mgmt.ManagementRequestHandler<?,​?> resolveHandler​(org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory.RequestHandlerChain handlers,
                                                                                             org.jboss.as.protocol.mgmt.ManagementRequestHeader request)
        Specified by:
        resolveHandler in interface org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
      • internalExecute

        protected OperationResponse internalExecute​(Operation operation,
                                                    org.jboss.as.protocol.mgmt.ManagementRequestContext<?> context,
                                                    OperationMessageHandler messageHandler,
                                                    ModelController.OperationTransactionControl control)
        Subclasses can override this method to determine how to execute the method, e.g. attach to an existing operation or not
        Parameters:
        operation - the operation being executed
        messageHandler - the operation message handler proxy
        control - the operation transaction control
        Returns:
        the result of the executed operation