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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(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 ModelVersionGets theModelVersionof the kernel management API exposed by the proxied process.Get the address where this proxy controller applies to in the host ModelController
-
Method Details
-
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 givencontrolwill have been invoked.- Parameters:
operation- the operation to execute. Cannot benullhandler- 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
Gets theModelVersionof the kernel management API exposed by the proxied process.- Returns:
- the model version. Will not be
null
-