Class RuntimeOperationFunction<T,V>
java.lang.Object
org.wildfly.subsystem.resource.executor.RuntimeOperationFunction<T,V>
- Type Parameters:
T- the type of value provided by the service on which the given runtime operation operatesV- the type of the value of which the given runtime operation operates
- All Implemented Interfaces:
ExceptionFunction<T,ModelNode, org.jboss.as.controller.OperationFailedException>
public class RuntimeOperationFunction<T,V>
extends Object
implements ExceptionFunction<T,ModelNode,org.jboss.as.controller.OperationFailedException>
A functional view of a runtime operation.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeOperationFunction(org.jboss.as.controller.ExpressionResolver resolver, ModelNode operation, Function<T, V> mapper, RuntimeOperation<V> executable) Creates a functional view of the specified metric using the specified mapping function. -
Method Summary
-
Constructor Details
-
RuntimeOperationFunction
public RuntimeOperationFunction(org.jboss.as.controller.ExpressionResolver resolver, ModelNode operation, Function<T, V> mapper, RuntimeOperation<V> executable) Creates a functional view of the specified metric using the specified mapping function.- Parameters:
resolver- an expression resolveroperation- the management operationmapper- maps the value of a service to the value on which the given metric operatesexecutable- a runtime operation
-
-
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
-