Package org.jboss.as.controller
Interface ModelController
public interface ModelController
Controls reads of and modifications to a management model.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn operation transaction.static interfaceA callback interface for the operation's completion status. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PermissionAControllerPermissionneeded to access aModelControllerviaValue.getValue()or to invoke its methods. -
Method Summary
Modifier and TypeMethodDescriptionexecute(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.org.jboss.dmr.ModelNodeexecute(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control, OperationAttachments attachments) Execute an operation, sending updates to the given handler.
-
Field Details
-
ACCESS_PERMISSION
AControllerPermissionneeded to access aModelControllerviaValue.getValue()or to invoke its methods. The name of the permission is "canAccessModelController."
-
-
Method Details
-
execute
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. This method is not intended to be invoked directly by clients.- Parameters:
operation- the operation to executehandler- the message handlercontrol- the transaction control for this operationattachments- the operation attachments- Returns:
- the operation result
- Throws:
SecurityException- if the caller does not haveACCESS_PERMISSION
-
execute
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. This method is not intended to be invoked directly by clients.- Parameters:
operation- the operation to executehandler- the message handlercontrol- the transaction control for this operation- Returns:
- the operation response
- Throws:
SecurityException- if the caller does not haveACCESS_PERMISSION
-