Interface RuntimeOperation<C>
- Type Parameters:
C- operation context
public interface RuntimeOperation<C>
Defines the behavior of a runtime operation.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.dmr.ModelNodeexecute(org.jboss.as.controller.ExpressionResolver resolver, org.jboss.dmr.ModelNode operation, C context) Execute against the specified context.default StringgetName()Convenience method that return the name of this runtime operation.org.jboss.as.controller.OperationDefinitionReturns the operation definition for this runtime operation.
-
Method Details
-
getOperationDefinition
org.jboss.as.controller.OperationDefinition getOperationDefinition()Returns the operation definition for this runtime operation.- Returns:
- an operation definition
-
getName
Convenience method that return the name of this runtime operation.- Returns:
- the operation name
-
execute
org.jboss.dmr.ModelNode execute(org.jboss.as.controller.ExpressionResolver resolver, org.jboss.dmr.ModelNode operation, C context) throws org.jboss.as.controller.OperationFailedException Execute against the specified context.- Parameters:
resolver- an expression resolveroperation- original operation model to resolve parameters fromcontext- an execution context- Returns:
- the execution result (possibly null).
- Throws:
org.jboss.as.controller.OperationFailedException
-