public abstract class AbstractRuntimeMetricsHandler extends AbstractRuntimeOnlyHandler
| Constructor and Description |
|---|
AbstractRuntimeMetricsHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
executeReadMetricStep(OperationContext context,
org.jboss.dmr.ModelNode operation,
EJBComponent component) |
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME. |
protected static String |
resolveRuntimeName(OperationContext context,
PathElement address)
Resolves runtime name of model resource.
|
execute, resourceMustExist, waitForprotected abstract void executeReadMetricStep(OperationContext context, org.jboss.dmr.ModelNode operation, EJBComponent component) throws OperationFailedException
OperationFailedExceptionprotected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandlerOperationContext.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 AbstractRuntimeOnlyHandlercontext - the operation contextoperation - the operation being executedOperationFailedException - if the operation failed before calling context.completeStep()protected static String resolveRuntimeName(OperationContext context, PathElement address)
context - - operation context in which handler is invokedaddress - - deployment addressCopyright © 2014 JBoss by Red Hat. All rights reserved.