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
RemoteProxyController
implementation.- 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 RemoteProxyController
create(TransactionalProtocolClient client, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator, ModelVersion targetKernelVersion)
Create a new remote proxy controller.static RemoteProxyController
create(org.jboss.as.protocol.mgmt.ManagementChannelHandler channelAssociation, PathAddress pathAddress, ProxyOperationAddressTranslator addressTranslator)
Deprecated.only present for test case usevoid
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
.ModelVersion
getKernelModelVersion()
Gets theModelVersion
of the kernel management API exposed by the proxied process.PathAddress
getProxyNodeAddress()
Get the address where this proxy controller applies to in the host ModelControllerTransactionalProtocolClient
getTransactionalProtocolClient()
Get the underlying transactional protocol client.org.jboss.dmr.ModelNode
translateOperationForProxy(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
- theModelVersion
of the kernel management API exposed by the proxied process- Returns:
- the proxy controller
-
create
@Deprecated 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:
getProxyNodeAddress
in 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 givencontrol
will have been invoked.- Specified by:
execute
in interfaceProxyController
- Parameters:
original
- the operation to execute. Cannot benull
messageHandler
- the message handler. May benull
control
- the callback handler for this operation. Cannot benull
attachments
- the operation attachments. May benull
blockingTimeout
- control for maximum period any blocking operations can block. Cannot benull
-
getKernelModelVersion
public ModelVersion getKernelModelVersion()
Description copied from interface:ProxyController
Gets theModelVersion
of the kernel management API exposed by the proxied process.- Specified by:
getKernelModelVersion
in 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
-
-