public static interface HostControllerRegistrationHandler.OperationExecutor
ModelController
to execute
a OperationStepHandler
implementation directly, bypassing normal domain coordination layer.
TODO This interface probably should be adapted to provide use-case-specific methods instead of generic
"execute whatever I hand you" ones. The "installSlaveExtensions" method needed to be non-generic unless
I was willing to hand a ref to the root MRR to RemoteDomainConnnectionService.Modifier and Type | Method and Description |
---|---|
void |
acquireReadlock(Integer operationID)
Attempts to acquire a non-exclusive read lock.
|
org.jboss.dmr.ModelNode |
execute(Operation operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationStepHandler step)
Execute the operation.
|
org.jboss.dmr.ModelNode |
executeReadOnly(org.jboss.dmr.ModelNode operation,
OperationStepHandler handler,
ModelController.OperationTransactionControl control)
Execute an operation using the current management model.
|
org.jboss.dmr.ModelNode |
executeReadOnly(org.jboss.dmr.ModelNode operation,
Resource model,
OperationStepHandler handler,
ModelController.OperationTransactionControl control)
Execute an operation using given resource model.
|
org.jboss.dmr.ModelNode |
installSlaveExtensions(List<org.jboss.dmr.ModelNode> extensions)
Execute the operation to install extensions provided by a remote domain controller.
|
void |
releaseReadlock(Integer operationID)
Release the non-exclusive read lock obtained from #acquireReadlock.
|
org.jboss.dmr.ModelNode execute(Operation operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control, OperationStepHandler step)
operation
- operationhandler
- the message handlercontrol
- the transaction controlstep
- the step to be executedorg.jboss.dmr.ModelNode installSlaveExtensions(List<org.jboss.dmr.ModelNode> extensions)
extensions@return
- the resultorg.jboss.dmr.ModelNode executeReadOnly(org.jboss.dmr.ModelNode operation, OperationStepHandler handler, ModelController.OperationTransactionControl control)
operation
- the operationhandler
- the operation handler to useorg.jboss.dmr.ModelNode executeReadOnly(org.jboss.dmr.ModelNode operation, Resource model, OperationStepHandler handler, ModelController.OperationTransactionControl control)
operation
- the operationmodel
- the resource modelhandler
- the operation handler to usevoid acquireReadlock(Integer operationID) throws IllegalArgumentException, InterruptedException
operationID
- - the operationID for this registration. Cannot be null
.IllegalArgumentException
- - if operationID is null.InterruptedException
- - if the lock is not acquired.void releaseReadlock(Integer operationID) throws IllegalArgumentException
operationID
- - the operationID for this registration. Cannot be null
.IllegalArgumentException
- - if if the operationId is null.IllegalStateException
- - if the shared lock was not held.Copyright © 2023 JBoss by Red Hat. All rights reserved.