public class RemoteProxyController extends Object implements ManagementRequestHandlerFactory, ProxyController
ProxyController implementation.ManagementRequestHandlerFactory.RequestHandlerChainProxyController.ProxyOperationControl| Modifier and Type | Method and Description |
|---|---|
static RemoteProxyController |
create(ManagementChannelHandler channelAssociation,
PathAddress pathAddress,
ProxyOperationAddressTranslator addressTranslator)
Creates a new remote proxy controller using an existing channel.
|
void |
execute(org.jboss.dmr.ModelNode original,
OperationMessageHandler handler,
ProxyController.ProxyOperationControl control,
OperationAttachments attachments)
Execute an operation, sending updates to the given handler and receiving the response via the given
ModelController.OperationTransactionControl. |
PathAddress |
getProxyNodeAddress()
Get the address where this proxy controller applies to in the host ModelController
|
ManagementRequestHandler<?,?> |
resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers,
ManagementRequestHeader header)
Try to resolve the request handler for the give header.
|
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 PathAddress getProxyNodeAddress()
getProxyNodeAddress in interface ProxyControllerpublic ManagementRequestHandler<?,?> resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers, ManagementRequestHeader header)
resolveHandler in interface ManagementRequestHandlerFactoryhandlers - the handlers chainheader - the request headerpublic void execute(org.jboss.dmr.ModelNode original,
OperationMessageHandler handler,
ProxyController.ProxyOperationControl control,
OperationAttachments attachments)
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 nullhandler - the message handler. May be nullcontrol - the callback handler for this operation. Cannot be nullattachments - the operation attachments. May be nullCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.