Class MetricHandler<C>
- java.lang.Object
-
- org.jboss.as.controller.AbstractRuntimeOnlyHandler
-
- org.jboss.as.clustering.controller.MetricHandler<C>
-
- All Implemented Interfaces:
Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.controller.OperationStepHandler
public class MetricHandler<C> extends org.jboss.as.controller.AbstractRuntimeOnlyHandler implements Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
GenericOperationStepHandlerfor runtime metrics.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MetricHandler(MetricExecutor<C> executor, Class<M> metricClass)MetricHandler(MetricExecutor<C> executor, Collection<? extends Metric<C>> metrics)MetricHandler(MetricExecutor<C> executor, Metric<C>[] metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)voidregister(org.jboss.as.controller.registry.ManagementResourceRegistration registration)Registers this object with a resource.
-
-
-
Constructor Detail
-
MetricHandler
public MetricHandler(MetricExecutor<C> executor, Class<M> metricClass)
-
MetricHandler
public MetricHandler(MetricExecutor<C> executor, Metric<C>[] metrics)
-
MetricHandler
public MetricHandler(MetricExecutor<C> executor, Collection<? extends Metric<C>> metrics)
-
-
Method Detail
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Description copied from interface:RegistrationRegisters this object with a resource.- Specified by:
registerin interfaceRegistration<C>- 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:
executeRuntimeStepin classorg.jboss.as.controller.AbstractRuntimeOnlyHandler
-
-