public abstract class AbstractJMSRuntimeHandler<T> extends AbstractRuntimeOnlyHandler
Constructor and Description |
---|
AbstractJMSRuntimeHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
executeReadAttribute(String attributeName,
OperationContext context,
T destination,
PathAddress address,
boolean includeDefault) |
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME . |
void |
registerDestination(String server,
String name,
T destination) |
void |
unregisterDestination(String server,
String name) |
execute, waitFor
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 context.completeStep()
.
If the operation succeeded, context.getResult()
should
be called and the result populated with the outcome, after which context.completeStep()
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 executeReadAttribute(String attributeName, OperationContext context, T destination, PathAddress address, boolean includeDefault)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.