Package org.jboss.as.threads
Class ThreadPoolMetricsHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractRuntimeOnlyHandler
-
- org.jboss.as.threads.ThreadPoolMetricsHandler
-
- All Implemented Interfaces:
OperationStepHandler
- Direct Known Subclasses:
BoundedQueueThreadPoolMetricsHandler,QueuelessThreadPoolMetricsHandler,ScheduledThreadPoolMetricsHandler,UnboundedQueueThreadPoolMetricsHandler
public abstract class ThreadPoolMetricsHandler extends AbstractRuntimeOnlyHandler
Base class for operation step handlers that expose thread pool resource metrics.- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedThreadPoolMetricsHandler(List<AttributeDefinition> metrics, RuntimeCapability capability, org.jboss.msc.service.ServiceName serviceNameBase)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidexecuteRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation)protected org.jboss.msc.service.ServiceController<?>getService(OperationContext context, org.jboss.dmr.ModelNode operation)voidregisterAttributes(ManagementResourceRegistration registration)protected abstract voidsetResult(OperationContext context, String attributeName, org.jboss.msc.service.Service<?> service)-
Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
-
-
-
Constructor Detail
-
ThreadPoolMetricsHandler
protected ThreadPoolMetricsHandler(List<AttributeDefinition> metrics, RuntimeCapability capability, org.jboss.msc.service.ServiceName serviceNameBase)
-
-
Method Detail
-
registerAttributes
public void registerAttributes(ManagementResourceRegistration registration)
-
executeRuntimeStep
protected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executeRuntimeStepin classAbstractRuntimeOnlyHandler- Throws:
OperationFailedException
-
setResult
protected abstract void setResult(OperationContext context, String attributeName, org.jboss.msc.service.Service<?> service) throws OperationFailedException
- Throws:
OperationFailedException
-
getService
protected org.jboss.msc.service.ServiceController<?> getService(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Throws:
OperationFailedException
-
-