Package org.jboss.as.controller.remote
Class RemoteProxyController
java.lang.Object
org.jboss.as.controller.remote.RemoteProxyController
- All Implemented Interfaces:
ProxyController
Remote
ProxyController implementation.- Author:
- Kabir Khan, Emanuel Muckenhuber
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.ProxyController
ProxyController.ProxyOperationControl -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteProxyControllercreate(TransactionalProtocolClient client, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator, ModelVersion targetKernelVersion) Create a new remote proxy controller.static RemoteProxyControllercreate(org.jboss.as.protocol.mgmt.ManagementChannelHandler channelAssociation, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator) Deprecated.only present for test case usevoidexecute(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 givenModelController.OperationTransactionControl.Gets theModelVersionof the kernel management API exposed by the proxied process.Get the address where this proxy controller applies to in the host ModelControllerGet the underlying transactional protocol client.org.jboss.dmr.ModelNodetranslateOperationForProxy(org.jboss.dmr.ModelNode op) Translate the operation address.
-
Method Details
-
create
public static RemoteProxyController create(TransactionalProtocolClient client, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator, ModelVersion targetKernelVersion) Create a new remote proxy controller.- Parameters:
client- the transactional protocol clientpathAddress- the path addressaddressTranslator- the address translatortargetKernelVersion- theModelVersionof the kernel management API exposed by the proxied process- Returns:
- the proxy controller
-
create
@Deprecated(forRemoval=false) public static RemoteProxyController create(org.jboss.as.protocol.mgmt.ManagementChannelHandler channelAssociation, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator) Deprecated.only present for test case useCreates a new remote proxy controller using an existing channel.- Parameters:
channelAssociation- the channel associationpathAddress- the address within the model of the created proxy controlleraddressTranslator- the translator to use translating the address for the remote proxy- Returns:
- the proxy controller
-
getTransactionalProtocolClient
Get the underlying transactional protocol client.- Returns:
- the protocol client
-
getProxyNodeAddress
Get the address where this proxy controller applies to in the host ModelController- Specified by:
getProxyNodeAddressin interfaceProxyController- Returns:
- the address where this proxy controller applies.
-
execute
public 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 givenModelController.OperationTransactionControl. When this operation returns, either theModelController.OperationTransactionControl.operationPrepared(ModelController.OperationTransaction, org.jboss.dmr.ModelNode)or theProxyController.ProxyOperationControl.operationFailed(org.jboss.dmr.ModelNode)callbacks on the givencontrolwill have been invoked.- Specified by:
executein interfaceProxyController- Parameters:
original- the operation to execute. Cannot benullmessageHandler- the message handler. May benullcontrol- the callback handler for this operation. Cannot benullattachments- the operation attachments. May benullblockingTimeout- control for maximum period any blocking operations can block. Cannot benull
-
getKernelModelVersion
Description copied from interface:ProxyControllerGets theModelVersionof the kernel management API exposed by the proxied process.- Specified by:
getKernelModelVersionin interfaceProxyController- Returns:
- the model version. Will not be
null
-
translateOperationForProxy
public org.jboss.dmr.ModelNode translateOperationForProxy(org.jboss.dmr.ModelNode op) Translate the operation address.- Parameters:
op- the operation- Returns:
- the new operation
-