Interface MetricExecutor<C>

Type Parameters:
C - the metric execution context.

public interface MetricExecutor<C>
Encapsulates the execution of a runtime metric.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.dmr.ModelNode
    execute(org.jboss.as.controller.OperationContext context, Metric<C> metric)
    Executes the specified executable against the specified operation context.
  • Method Details

    • execute

      org.jboss.dmr.ModelNode execute(org.jboss.as.controller.OperationContext context, Metric<C> metric) throws org.jboss.as.controller.OperationFailedException
      Executes the specified executable against the specified operation context.
      Parameters:
      context - an operation context
      metric - the target metric
      Returns:
      the result of the execution (possibly null).
      Throws:
      org.jboss.as.controller.OperationFailedException - if execution fails