Class MetricOperationStepHandler<C>

  • All Implemented Interfaces:
    org.jboss.as.controller.OperationStepHandler, ManagementResourceRegistrar

    public class MetricOperationStepHandler<C>
    extends org.jboss.as.controller.AbstractRuntimeOnlyHandler
    implements ManagementResourceRegistrar
    Generic OperationStepHandler for runtime metrics.
    Author:
    Paul Ferraro
    • Constructor Detail

      • MetricOperationStepHandler

        public MetricOperationStepHandler​(MetricExecutor<C> executor,
                                          Class<M> metricClass)
    • Method Detail

      • register

        public void register​(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
        Description copied from interface: ManagementResourceRegistrar
        Registers this object with a resource.
        Specified by:
        register in interface ManagementResourceRegistrar
        Parameters:
        registration - a registration for a management resource
      • executeRuntimeStep

        protected void executeRuntimeStep​(org.jboss.as.controller.OperationContext context,
                                          org.jboss.dmr.ModelNode operation)
        Specified by:
        executeRuntimeStep in class org.jboss.as.controller.AbstractRuntimeOnlyHandler