public class RemoteProxyController extends Object implements ProxyController
ProxyController
implementation.ProxyController.ProxyOperationControl
Modifier and Type | Method and Description |
---|---|
static RemoteProxyController |
create(ManagementChannelHandler channelAssociation,
PathAddress pathAddress,
ProxyOperationAddressTranslator addressTranslator,
boolean validateAddresses)
Creates a new remote proxy controller using an existing channel.
|
static RemoteProxyController |
create(TransactionalProtocolClient client,
PathAddress pathAddress,
ProxyOperationAddressTranslator addressTranslator,
boolean validateAddresses)
Create a new remote proxy controller.
|
void |
execute(org.jboss.dmr.ModelNode original,
OperationMessageHandler messageHandler,
ProxyController.ProxyOperationControl control,
OperationAttachments attachments)
Execute an operation, sending updates to the given handler and receiving the response via the given
ModelController.OperationTransactionControl . |
PathAddress |
getProxyNodeAddress()
Get the address where this proxy controller applies to in the host ModelController
|
TransactionalProtocolClient |
getTransactionalProtocolClient()
Get the underlying transactional protocol client.
|
org.jboss.dmr.ModelNode |
translateOperationForProxy(org.jboss.dmr.ModelNode op)
Translate the operation address.
|
public static RemoteProxyController create(TransactionalProtocolClient client, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator, boolean validateAddresses)
client
- the transactional protocol clientpathAddress
- the path addressaddressTranslator
- the address translatorpublic static RemoteProxyController create(ManagementChannelHandler channelAssociation, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator, boolean validateAddresses)
channelAssociation
- the channel associationpathAddress
- the address within the model of the created proxy controlleraddressTranslator
- the translator to use translating the address for the remote proxypublic TransactionalProtocolClient getTransactionalProtocolClient()
public PathAddress getProxyNodeAddress()
getProxyNodeAddress
in interface ProxyController
public void execute(org.jboss.dmr.ModelNode original, OperationMessageHandler messageHandler, ProxyController.ProxyOperationControl control, OperationAttachments attachments)
ModelController.OperationTransactionControl
. When this operation returns, either the
ModelController.OperationTransactionControl.operationPrepared(ModelController.OperationTransaction, org.jboss.dmr.ModelNode)
or the ProxyController.ProxyOperationControl.operationFailed(org.jboss.dmr.ModelNode)
callbacks on the given control
will have been invoked.execute
in interface ProxyController
original
- the operation to execute. Cannot be null
messageHandler
- the message handler. May be null
control
- the callback handler for this operation. Cannot be null
attachments
- the operation attachments. May be null
public org.jboss.dmr.ModelNode translateOperationForProxy(org.jboss.dmr.ModelNode op)
op
- the operationCopyright © 2014 JBoss by Red Hat. All rights reserved.