public interface ModelController
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ModelController.OperationTransaction
An operation transaction.
|
static interface |
ModelController.OperationTransactionControl
A callback interface for the operation's completion status.
|
| Modifier and Type | Field and Description |
|---|---|
static Permission |
ACCESS_PERMISSION
A
ControllerPermission needed to access a ModelController via Value.getValue() or
to invoke its methods. |
| Modifier and Type | Method and Description |
|---|---|
ModelControllerClient |
createClient(Executor executor)
Deprecated.
Use
ModelControllerClientFactory. Will be removed in the next major or minor release. |
org.jboss.dmr.ModelNode |
execute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationAttachments attachments)
Execute an operation, sending updates to the given handler.
|
OperationResponse |
execute(Operation operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control)
Execute an operation, sending updates to the given handler, and making available in the return value
any streams that may have been associated with the response.
|
NotificationHandlerRegistration |
getNotificationRegistry()
Deprecated.
Use
NotificationHandlerRegistry. Will be removed in the next major or minor release. |
static final Permission ACCESS_PERMISSION
ControllerPermission needed to access a ModelController via Value.getValue() or
to invoke its methods. The name of the permission is "canAccessModelController."org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationAttachments attachments)
operation - the operation to executehandler - the message handlercontrol - the transaction control for this operationattachments - the operation attachmentsSecurityException - if the caller does not have ACCESS_PERMISSIONOperationResponse execute(Operation operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control)
operation - the operation to executehandler - the message handlercontrol - the transaction control for this operationSecurityException - if the caller does not have ACCESS_PERMISSION@Deprecated ModelControllerClient createClient(Executor executor)
ModelControllerClientFactory. Will be removed in the next major or minor release.SuperUser role, regardless of any security identity that is or isn't associated
with the calling thread when the client is invoked. This client generally should not
be used to handle requests from external callers, and if it is used great care should be
taken to ensure such use is not suborning the intended access control scheme.
In a VM with a SecurityManager installed, invocations
against the returned client can only occur from a calling context with the
PERFORM_IN_VM_CALL
permission. Without this permission a SecurityException will be thrown.
executor - the executor to use for asynchronous operation execution. Cannot be nullnullSecurityException - if the caller does not have the
CAN_ACCESS_MODEL_CONTROLLER
permission@Deprecated NotificationHandlerRegistration getNotificationRegistry()
NotificationHandlerRegistry. Will be removed in the next major or minor release.NotificationHandlerRegistration that registers notification handlers for this model controller.Copyright © 2022 JBoss by Red Hat. All rights reserved.