Class MetricFunction<T,V>
java.lang.Object
org.wildfly.subsystem.resource.executor.MetricFunction<T,V>
- Type Parameters:
T- the type of value provided by the service on which the given runtime metric operatesV- the type of the value of which the given runtime metric operates
- All Implemented Interfaces:
ExceptionFunction<T,ModelNode, org.jboss.as.controller.OperationFailedException>
public class MetricFunction<T,V>
extends Object
implements ExceptionFunction<T,ModelNode,org.jboss.as.controller.OperationFailedException>
A functional view of a runtime metric.
- Author:
- Paul Ferraro
-
Constructor Details
-
MetricFunction
Creates a functional view of the specified metric using the specified mapper.- Parameters:
mapper- maps the value of a service to the value on which the given metric operatesmetric- a runtime metric
-
-
Method Details
-
apply
Description copied from interface:ExceptionFunctionApplies this function to the given arguments.- Specified by:
applyin interfaceExceptionFunction<T,ModelNode, org.jboss.as.controller.OperationFailedException> - Parameters:
value- the argument- Returns:
- the function result
- Throws:
org.jboss.as.controller.OperationFailedException
-