Package org.jboss.as.controller.remote
Class RemoteProxyController
- java.lang.Object
-
- org.jboss.as.controller.remote.RemoteProxyController
-
- All Implemented Interfaces:
ProxyController
public class RemoteProxyController extends Object implements ProxyController
RemoteProxyControllerimplementation.- Author:
- Kabir Khan, Emanuel Muckenhuber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.ProxyController
ProxyController.ProxyOperationControl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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.ModelVersiongetKernelModelVersion()Gets theModelVersionof the kernel management API exposed by the proxied process.PathAddressgetProxyNodeAddress()Get the address where this proxy controller applies to in the host ModelControllerTransactionalProtocolClientgetTransactionalProtocolClient()Get the underlying transactional protocol client.org.jboss.dmr.ModelNodetranslateOperationForProxy(org.jboss.dmr.ModelNode op)Translate the operation address.
-
-
-
Method Detail
-
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
public TransactionalProtocolClient getTransactionalProtocolClient()
Get the underlying transactional protocol client.- Returns:
- the protocol client
-
getProxyNodeAddress
public PathAddress 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
public ModelVersion 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
-
-