public final class TransactionalProtocolHandlers extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAsHandlerFactory(ManagementChannelHandler association,
ModelController controller)
Add a transaction protocol request handler to an existing channel.
|
static TransactionalProtocolClient |
createClient(ManagementChannelHandler channelAssociation)
Create a transactional protocol client.
|
static ManagementRequestHandlerFactory |
createHandler(ManagementChannelAssociation association,
ModelController controller)
Create a transactional protocol request handler.
|
static TransactionalProtocolClient.PreparedOperation<TransactionalProtocolClient.Operation> |
executeBlocking(org.jboss.dmr.ModelNode operation,
TransactionalProtocolClient client)
Execute blocking for a prepared result.
|
static TransactionalProtocolClient.Operation |
wrap(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler,
OperationAttachments attachments)
Wrap an operation's parameters in a simple encapsulating object
|
public static TransactionalProtocolClient createClient(ManagementChannelHandler channelAssociation)
channelAssociation - the channel handlerpublic static void addAsHandlerFactory(ManagementChannelHandler association, ModelController controller)
association - the channel associationcontroller - the model controllerpublic static ManagementRequestHandlerFactory createHandler(ManagementChannelAssociation association, ModelController controller)
association - the management channelcontroller - the model controllerpublic static TransactionalProtocolClient.Operation wrap(org.jboss.dmr.ModelNode operation, OperationMessageHandler messageHandler, OperationAttachments attachments)
operation - the operationmessageHandler - the message handlerattachments - the attachmentspublic static TransactionalProtocolClient.PreparedOperation<TransactionalProtocolClient.Operation> executeBlocking(org.jboss.dmr.ModelNode operation, TransactionalProtocolClient client) throws IOException, InterruptedException
operation - the operation to executeclient - the protocol clientIOExceptionInterruptedExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.