Package org.jboss.as.controller.remote
Class TransactionalProtocolHandlers
java.lang.Object
org.jboss.as.controller.remote.TransactionalProtocolHandlers
Factory to create a
TransactionalProtocolClient.- Author:
- Emanuel Muckenhuber
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionalProtocolClientcreateClient(org.jboss.as.protocol.mgmt.ManagementChannelHandler channelAssociation) Create a transactional protocol client.executeBlocking(org.jboss.dmr.ModelNode operation, TransactionalProtocolClient client) Execute blocking for a prepared result.wrap(org.jboss.dmr.ModelNode operation, OperationMessageHandler messageHandler, OperationAttachments attachments) Wrap an operation's parameters in a simple encapsulating object
-
Method Details
-
createClient
public static TransactionalProtocolClient createClient(org.jboss.as.protocol.mgmt.ManagementChannelHandler channelAssociation) Create a transactional protocol client.- Parameters:
channelAssociation- the channel handler- Returns:
- the transactional protocol client
-
wrap
public static TransactionalProtocolClient.Operation wrap(org.jboss.dmr.ModelNode operation, OperationMessageHandler messageHandler, OperationAttachments attachments) Wrap an operation's parameters in a simple encapsulating object- Parameters:
operation- the operationmessageHandler- the message handlerattachments- the attachments- Returns:
- the encapsulating object
-
executeBlocking
public static TransactionalProtocolClient.PreparedOperation<TransactionalProtocolClient.Operation> executeBlocking(org.jboss.dmr.ModelNode operation, TransactionalProtocolClient client) throws IOException, InterruptedException Execute blocking for a prepared result.- Parameters:
operation- the operation to executeclient- the protocol client- Returns:
- the prepared operation
- Throws:
IOExceptionInterruptedException
-