public class BroadcastGroupWriteAttributeHandler extends ReloadRequiredWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T>| Modifier and Type | Field and Description |
|---|---|
static BroadcastGroupWriteAttributeHandler |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step.
|
protected void |
finishModelStage(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
Resource model)
Hook to allow subclasses to do any final
OperationContext.Stage.MODEL processing following the
application of the new attribute value. |
applyUpdateToRuntime, revertUpdateToRuntimegetAttributeDefinition, requiresRuntime, validateResolvedValue, validateUnresolvedValue, validateUpdatedModelpublic static final BroadcastGroupWriteAttributeHandler INSTANCE
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationStepHandlercontext.getFailureDescription()
must be called, before calling one of the
context.completeStep variants,
or an OperationFailedException must be thrown.
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.
When this method is invoked the thread context classloader will
be set to be the defining class loader of the class that implements this interface.
execute in interface OperationStepHandlerexecute in class AbstractWriteAttributeHandler<Void>context - the operation contextoperation - the operation being executedOperationFailedException - if the operation failed before calling context.completeStep()protected void finishModelStage(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue, Resource model) throws OperationFailedException
AbstractWriteAttributeHandlerOperationContext.Stage.MODEL processing following the
application of the new attribute value. This default implementation calls
AbstractWriteAttributeHandler.validateUpdatedModel(OperationContext, Resource).
NOTE: Implementations must not call
OperationContext.completeStep(OperationContext.ResultHandler) or any of its variants. The method that
calls this one handles step completion.
finishModelStage in class AbstractWriteAttributeHandler<Void>context - the operation contextoperation - the operationattributeName - the name of the attribute being modifiednewValue - the new value for the attributeoldValue - the previous value for the attributemodel - the updated model resourceOperationFailedExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.