public abstract class ThreadPoolMetricsHandler extends AbstractRuntimeOnlyHandler
Modifier | Constructor and Description |
---|---|
protected |
ThreadPoolMetricsHandler(List<AttributeDefinition> metrics,
org.jboss.msc.service.ServiceName serviceNameBase) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME . |
protected org.jboss.msc.service.ServiceController<?> |
getService(OperationContext context,
org.jboss.dmr.ModelNode operation) |
void |
registerAttributes(ManagementResourceRegistration registration) |
protected abstract void |
setResult(OperationContext context,
String attributeName,
org.jboss.msc.service.Service<?> service) |
execute, resourceMustExist
protected ThreadPoolMetricsHandler(List<AttributeDefinition> metrics, org.jboss.msc.service.ServiceName serviceNameBase)
public void registerAttributes(ManagementResourceRegistration registration)
protected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandler
OperationContext.Stage.RUNTIME
.
If the operation fails, context.getFailureDescroption()
must be called, or OperationFailedException
must be thrown, before calling one of the
context.completeStep variants
.
If the operation succeeded, context.getResult()
should
be called and the result populated with the outcome, after which one of the
context.completeStep variants
must be called.executeRuntimeStep
in class AbstractRuntimeOnlyHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
- if the operation failed before calling context.completeStep()
protected abstract void setResult(OperationContext context, String attributeName, org.jboss.msc.service.Service<?> service) throws OperationFailedException
OperationFailedException
protected org.jboss.msc.service.ServiceController<?> getService(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.