Package org.jboss.as.controller
Interface ProxyController
-
- All Known Subinterfaces:
TransformingProxyController
- All Known Implementing Classes:
RemoteProxyController
public interface ProxyController
A proxy controller to be registered with a ModelController. Proxy controllers apply to a given address in the host ModelController and typically allow access to an external ModelController. For example if a ProxyController is registered in the host ModelController for the address[a=b,c=d]
, then an operation executed in the host ModelController for[a=b]
will execute in the host model controller as normal. An operation for[a=b,c=d,x=y]
will apply to[x=y]
in the model controller pointed to by this proxy controller.- Author:
- Kabir Khan, Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ProxyController.ProxyOperationControl
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
execute(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, ProxyController.ProxyOperationControl control, OperationAttachments attachments, BlockingTimeout blockingTimeout)
Execute an operation, sending updates to the given handler and receiving the response via the givenModelController.OperationTransactionControl
.default 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 ModelController
-
-
-
Method Detail
-
getProxyNodeAddress
PathAddress getProxyNodeAddress()
Get the address where this proxy controller applies to in the host ModelController- Returns:
- the address where this proxy controller applies.
-
execute
void execute(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, 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.- Parameters:
operation
- the operation to execute. Cannot benull
handler
- 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
default ModelVersion getKernelModelVersion()
Gets theModelVersion
of the kernel management API exposed by the proxied process.- Returns:
- the model version. Will not be
null
-
-