Class MetricOperationStepHandler<C>
- java.lang.Object
-
- org.jboss.as.controller.AbstractRuntimeOnlyHandler
-
- org.wildfly.subsystem.resource.executor.MetricOperationStepHandler<C>
-
- All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler,ManagementResourceRegistrar
public class MetricOperationStepHandler<C> extends org.jboss.as.controller.AbstractRuntimeOnlyHandler implements ManagementResourceRegistrar
GenericOperationStepHandlerfor runtime metrics.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MetricOperationStepHandler(MetricExecutor<C> executor, Class<M> metricClass)MetricOperationStepHandler(MetricExecutor<C> executor, Iterable<? extends 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
-
MetricOperationStepHandler
public MetricOperationStepHandler(MetricExecutor<C> executor, Class<M> metricClass)
-
MetricOperationStepHandler
public MetricOperationStepHandler(MetricExecutor<C> executor, Iterable<? extends Metric<C>> metrics)
-
-
Method Detail
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Description copied from interface:ManagementResourceRegistrarRegisters this object with a resource.- Specified by:
registerin interfaceManagementResourceRegistrar- 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
-
-