Class RuntimeOperationFunction<T,​V>

  • Type Parameters:
    T - the type of value provided by the service on which the given runtime operation operates
    V - the type of the value of which the given runtime operation operates
    All Implemented Interfaces:
    org.wildfly.common.function.ExceptionFunction<T,​org.jboss.dmr.ModelNode,​OperationFailedException>

    public class RuntimeOperationFunction<T,​V>
    extends Object
    implements org.wildfly.common.function.ExceptionFunction<T,​org.jboss.dmr.ModelNode,​OperationFailedException>
    A functional view of a runtime operation.
    Author:
    Paul Ferraro
    • Constructor Detail

      • RuntimeOperationFunction

        public RuntimeOperationFunction​(ExpressionResolver resolver,
                                        org.jboss.dmr.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 resolver
        operation - the management operation
        mapper - maps the value of a service to the value on which the given metric operates
        executable - a runtime operation