Class AbstractQueueControlHandler<T>

java.lang.Object
org.jboss.as.controller.AbstractRuntimeOnlyHandler
org.wildfly.extension.messaging.activemq.AbstractQueueControlHandler<T>
All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
Direct Known Subclasses:
JMSQueueControlHandler, QueueControlHandler

public abstract class AbstractQueueControlHandler<T> extends org.jboss.as.controller.AbstractRuntimeOnlyHandler
Base class for handlers that interact with either a ActiveMQ QueueControl or a org.apache.activemq.artemis.api.jms.management.JMSQueueControl.
Author:
Brian Stansberry (c) 2011 Red Hat Inc., Jeff Mesnil (c) 2014 Red Hat Inc.
  • Field Details

  • Constructor Details

    • AbstractQueueControlHandler

      public AbstractQueueControlHandler()
  • Method Details

    • getMessageIDAttributeDefinition

      protected abstract org.jboss.as.controller.AttributeDefinition getMessageIDAttributeDefinition()
    • getReplyMessageParameterDefinitions

      protected abstract org.jboss.as.controller.AttributeDefinition[] getReplyMessageParameterDefinitions()
    • registerOperations

      public void registerOperations(org.jboss.as.controller.registry.ManagementResourceRegistration registry, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver)
    • executeRuntimeStep

      protected void executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException
      Specified by:
      executeRuntimeStep in class org.jboss.as.controller.AbstractRuntimeOnlyHandler
      Throws:
      org.jboss.as.controller.OperationFailedException
    • getReplyMapConsumerMessageParameterDefinition

      protected org.jboss.as.controller.AttributeDefinition[] getReplyMapConsumerMessageParameterDefinition()
    • getQueueControl

      protected abstract AbstractQueueControlHandler.DelegatingQueueControl<T> getQueueControl(ActiveMQBroker server, String queueName)
    • handleAdditionalOperation

      protected abstract Object handleAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, T queueControl) throws org.jboss.as.controller.OperationFailedException
      Throws:
      org.jboss.as.controller.OperationFailedException
    • revertAdditionalOperation

      protected abstract void revertAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, T queueControl, Object handback)
    • throwUnimplementedOperationException

      protected final void throwUnimplementedOperationException(String operationName)