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 operatespublic class OperationFunction<T,V> extends Object implements org.wildfly.common.function.ExceptionFunction<T,org.jboss.dmr.ModelNode,org.jboss.as.controller.OperationFailedException>
| Constructor and Description |
|---|
OperationFunction(org.jboss.as.controller.ExpressionResolver resolver,
org.jboss.dmr.ModelNode operation,
Function<T,V> mapper,
Operation<V> executable)
Creates a functional view of the specified metric using the specified mapping function.
|
public OperationFunction(org.jboss.as.controller.ExpressionResolver resolver,
org.jboss.dmr.ModelNode operation,
Function<T,V> mapper,
Operation<V> executable)
resolver - an expression resolveroperation - the management operationmapper - maps the value of a service to the value on which the given metric operatesexecutable - a runtime operationpublic org.jboss.dmr.ModelNode apply(T value) throws org.jboss.as.controller.OperationFailedException
apply in interface org.wildfly.common.function.ExceptionFunction<T,org.jboss.dmr.ModelNode,org.jboss.as.controller.OperationFailedException>org.jboss.as.controller.OperationFailedExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.