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)
Deprecated.
only present for test case use
|
static RemoteProxyController |
create(TransactionalProtocolClient client,
PathAddress pathAddress,
ProxyOperationAddressTranslator addressTranslator,
ModelVersion targetKernelVersion)
Create a new remote proxy controller.
|
void |
execute(org.jboss.dmr.ModelNode original,
OperationMessageHandler messageHandler,
ProxyController.ProxyOperationControl control,
OperationAttachments attachments,
BlockingTimeout blockingTimeout)
Execute an operation, sending updates to the given handler and receiving the response via the given
ModelController.OperationTransactionControl . |
ModelVersion |
getKernelModelVersion()
Gets the
ModelVersion of the kernel management API exposed by the proxied process. |
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, ModelVersion targetKernelVersion)
client
- the transactional protocol clientpathAddress
- the path addressaddressTranslator
- the address translatortargetKernelVersion
- the ModelVersion
of the kernel management API exposed by the proxied process@Deprecated public static RemoteProxyController create(ManagementChannelHandler channelAssociation, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator)
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, BlockingTimeout blockingTimeout)
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
blockingTimeout
- control for maximum period any blocking operations can block. Cannot be null
public ModelVersion getKernelModelVersion()
ProxyController
ModelVersion
of the kernel management API exposed by the proxied process.getKernelModelVersion
in interface ProxyController
null
public org.jboss.dmr.ModelNode translateOperationForProxy(org.jboss.dmr.ModelNode op)
op
- the operationCopyright © 2023 JBoss by Red Hat. All rights reserved.