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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jboss.dmr.ModelNodeexecute(org.jboss.as.controller.OperationContext context, Metric<C> metric)Executes the specified executable against the specified operation context.
-
-
-
Method Detail
-
execute
org.jboss.dmr.ModelNode execute(org.jboss.as.controller.OperationContext context, Metric<C> metric) throws org.jboss.as.controller.OperationFailedExceptionExecutes 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
-
-