Class ActiveMQServerControlWriteHandler

  • All Implemented Interfaces:
    org.jboss.as.controller.OperationStepHandler

    public class ActiveMQServerControlWriteHandler
    extends org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
    Write attribute handler for attributes that update ActiveMQServerControl.
    Author:
    Brian Stansberry (c) 2011 Red Hat Inc.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

        org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<T extends Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean applyUpdateToRuntime​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue, org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> handbackHolder)  
      protected void finishModelStage​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue, org.jboss.as.controller.registry.Resource resource)  
      void registerAttributes​(org.jboss.as.controller.registry.ManagementResourceRegistration registry, boolean registerRuntimeOnly)  
      protected void revertUpdateToRuntime​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, Void handback)  
      • Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

        execute, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModel
    • Method Detail

      • registerAttributes

        public void registerAttributes​(org.jboss.as.controller.registry.ManagementResourceRegistration registry,
                                       boolean registerRuntimeOnly)
      • finishModelStage

        protected void finishModelStage​(org.jboss.as.controller.OperationContext context,
                                        org.jboss.dmr.ModelNode operation,
                                        String attributeName,
                                        org.jboss.dmr.ModelNode newValue,
                                        org.jboss.dmr.ModelNode oldValue,
                                        org.jboss.as.controller.registry.Resource resource)
                                 throws org.jboss.as.controller.OperationFailedException
        Overrides:
        finishModelStage in class org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
        Throws:
        org.jboss.as.controller.OperationFailedException
      • applyUpdateToRuntime

        protected boolean applyUpdateToRuntime​(org.jboss.as.controller.OperationContext context,
                                               org.jboss.dmr.ModelNode operation,
                                               String attributeName,
                                               org.jboss.dmr.ModelNode newValue,
                                               org.jboss.dmr.ModelNode currentValue,
                                               org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> handbackHolder)
                                        throws org.jboss.as.controller.OperationFailedException
        Specified by:
        applyUpdateToRuntime in class org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
        Throws:
        org.jboss.as.controller.OperationFailedException
      • revertUpdateToRuntime

        protected void revertUpdateToRuntime​(org.jboss.as.controller.OperationContext context,
                                             org.jboss.dmr.ModelNode operation,
                                             String attributeName,
                                             org.jboss.dmr.ModelNode valueToRestore,
                                             org.jboss.dmr.ModelNode valueToRevert,
                                             Void handback)
                                      throws org.jboss.as.controller.OperationFailedException
        Specified by:
        revertUpdateToRuntime in class org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
        Throws:
        org.jboss.as.controller.OperationFailedException