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
-
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 contextmetric- the target metric- Returns:
- the result of the execution (possibly null).
- Throws:
org.jboss.as.controller.OperationFailedException- if execution fails
-