Class MetricHandler<C>
java.lang.Object
org.jboss.as.controller.AbstractRuntimeOnlyHandler
org.jboss.as.clustering.controller.MetricHandler<C>
- All Implemented Interfaces:
ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.controller.OperationStepHandler
public class MetricHandler<C>
extends org.jboss.as.controller.AbstractRuntimeOnlyHandler
implements ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>
Generic
OperationStepHandler for runtime metrics.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionMetricHandler(MetricExecutor<C> executor, Class<M> metricClass) MetricHandler(MetricExecutor<C> executor, Collection<? extends Metric<C>> metrics) MetricHandler(MetricExecutor<C> executor, Metric<C>[] metrics) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
Constructor Details
-
MetricHandler
-
MetricHandler
-
MetricHandler
-
-
Method Details
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration) Description copied from interface:ManagementRegistrarRegisters this object with a resource.- Specified by:
registerin interfaceManagementRegistrar<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
-