Interface RuntimeOperation<C>

  • Type Parameters:
    C - operation context

    public interface RuntimeOperation<C>
    Defines the behavior of a runtime operation.
    Author:
    Paul Ferraro
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      org.jboss.dmr.ModelNode execute​(org.jboss.as.controller.ExpressionResolver resolver, org.jboss.dmr.ModelNode operation, C context)
      Execute against the specified context.
      default String getName()
      Convenience method that return the name of this runtime operation.
      org.jboss.as.controller.OperationDefinition getOperationDefinition()
      Returns the operation definition for this runtime operation.
    • Method Detail

      • getOperationDefinition

        org.jboss.as.controller.OperationDefinition getOperationDefinition()
        Returns the operation definition for this runtime operation.
        Returns:
        an operation definition
      • getName

        default String 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 resolver
        operation - original operation model to resolve parameters from
        context - an execution context
        Returns:
        the execution result (possibly null).
        Throws:
        org.jboss.as.controller.OperationFailedException