public class RemoteProxyController extends Object implements ManagementRequestHandlerFactory, ProxyController
ProxyController
implementation.ManagementRequestHandlerFactory.RequestHandlerChain
ProxyController.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 ProxyController
public ManagementRequestHandler<?,?> resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers, ManagementRequestHeader header)
resolveHandler
in interface ManagementRequestHandlerFactory
handlers
- 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 ProxyController
original
- the operation to execute. Cannot be null
handler
- the message handler. May be null
control
- the callback handler for this operation. Cannot be null
attachments
- the operation attachments. May be null
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.