public class RemoteProxyController extends Object implements ProxyController
ProxyController implementation.ProxyController.ProxyOperationControl| Modifier and Type | Method and Description |
|---|---|
static RemoteProxyController |
create(org.jboss.as.protocol.mgmt.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(org.jboss.as.protocol.mgmt.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 ProxyControllerpublic 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 ProxyControlleroriginal - the operation to execute. Cannot be nullmessageHandler - the message handler. May be nullcontrol - the callback handler for this operation. Cannot be nullattachments - the operation attachments. May be nullblockingTimeout - control for maximum period any blocking operations can block. Cannot be nullpublic ModelVersion getKernelModelVersion()
ProxyControllerModelVersion of the kernel management API exposed by the proxied process.getKernelModelVersion in interface ProxyControllernullpublic org.jboss.dmr.ModelNode translateOperationForProxy(org.jboss.dmr.ModelNode op)
op - the operationCopyright © 2016 JBoss by Red Hat. All rights reserved.