Package org.jboss.as.ee.subsystem
Class ManagedExecutorServiceMetricsHandler<T>
java.lang.Object
org.jboss.as.controller.AbstractRuntimeOnlyHandler
org.jboss.as.ee.subsystem.ManagedExecutorServiceMetricsHandler<T>
- All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
public class ManagedExecutorServiceMetricsHandler<T>
extends org.jboss.as.controller.AbstractRuntimeOnlyHandler
Operation step handler that expose a capability's metrics, through its service.
- Author:
- emmartins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ManagedExecutorServiceMetricsHandler.Builder<T>builder(org.jboss.as.controller.capability.RuntimeCapability capability) protected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) voidregisterAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registration) Registers metrics attr definitions.Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
Method Details
-
builder
public static <T> ManagedExecutorServiceMetricsHandler.Builder<T> builder(org.jboss.as.controller.capability.RuntimeCapability capability) -
registerAttributes
public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registration) Registers metrics attr definitions.- Parameters:
registration-
-
executeRuntimeStep
protected void executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException - Specified by:
executeRuntimeStepin classorg.jboss.as.controller.AbstractRuntimeOnlyHandler- Throws:
org.jboss.as.controller.OperationFailedException
-