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.AbstractRuntimeOnlyHandlerBase class for handlers that interact with either a ActiveMQQueueControlor aorg.apache.activemq.artemis.api.jms.management.JMSQueueControl.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc., Jeff Mesnil (c) 2014 Red Hat Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractQueueControlHandler.DelegatingQueueControl<T>Exposes the method signatures that are common betweenorg.apache.activemq.api.core.management.QueueControlandorg.apache.activemq.api.jms.management.JMSQueueControl.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractQueueControlHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)protected abstract org.jboss.as.controller.AttributeDefinitiongetMessageIDAttributeDefinition()protected abstract AbstractQueueControlHandler.DelegatingQueueControl<T>getQueueControl(org.apache.activemq.artemis.core.server.ActiveMQServer server, String queueName)protected org.jboss.as.controller.AttributeDefinition[]getReplyMapConsumerMessageParameterDefinition()protected abstract org.jboss.as.controller.AttributeDefinition[]getReplyMessageParameterDefinitions()protected abstract ObjecthandleAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, T queueControl)voidregisterOperations(org.jboss.as.controller.registry.ManagementResourceRegistration registry, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver)protected abstract voidrevertAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, T queueControl, Object handback)protected voidthrowUnimplementedOperationException(String operationName)
-
-
-
Field Detail
-
LIST_MESSAGES
public static final String LIST_MESSAGES
- See Also:
- Constant Field Values
-
LIST_MESSAGES_AS_JSON
public static final String LIST_MESSAGES_AS_JSON
- See Also:
- Constant Field Values
-
COUNT_MESSAGES
public static final String COUNT_MESSAGES
- See Also:
- Constant Field Values
-
REMOVE_MESSAGE
public static final String REMOVE_MESSAGE
- See Also:
- Constant Field Values
-
REMOVE_MESSAGES
public static final String REMOVE_MESSAGES
- See Also:
- Constant Field Values
-
EXPIRE_MESSAGES
public static final String EXPIRE_MESSAGES
- See Also:
- Constant Field Values
-
EXPIRE_MESSAGE
public static final String EXPIRE_MESSAGE
- See Also:
- Constant Field Values
-
SEND_MESSAGE_TO_DEAD_LETTER_ADDRESS
public static final String SEND_MESSAGE_TO_DEAD_LETTER_ADDRESS
- See Also:
- Constant Field Values
-
SEND_MESSAGES_TO_DEAD_LETTER_ADDRESS
public static final String SEND_MESSAGES_TO_DEAD_LETTER_ADDRESS
- See Also:
- Constant Field Values
-
CHANGE_MESSAGE_PRIORITY
public static final String CHANGE_MESSAGE_PRIORITY
- See Also:
- Constant Field Values
-
CHANGE_MESSAGES_PRIORITY
public static final String CHANGE_MESSAGES_PRIORITY
- See Also:
- Constant Field Values
-
MOVE_MESSAGE
public static final String MOVE_MESSAGE
- See Also:
- Constant Field Values
-
MOVE_MESSAGES
public static final String MOVE_MESSAGES
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER
public static final String LIST_MESSAGE_COUNTER
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER_AS_JSON
public static final String LIST_MESSAGE_COUNTER_AS_JSON
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER_AS_HTML
public static final String LIST_MESSAGE_COUNTER_AS_HTML
- See Also:
- Constant Field Values
-
RESET_MESSAGE_COUNTER
public static final String RESET_MESSAGE_COUNTER
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER_HISTORY
public static final String LIST_MESSAGE_COUNTER_HISTORY
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER_HISTORY_AS_JSON
public static final String LIST_MESSAGE_COUNTER_HISTORY_AS_JSON
- See Also:
- Constant Field Values
-
LIST_MESSAGE_COUNTER_HISTORY_AS_HTML
public static final String LIST_MESSAGE_COUNTER_HISTORY_AS_HTML
- See Also:
- Constant Field Values
-
PAUSE
public static final String PAUSE
- See Also:
- Constant Field Values
-
RESUME
public static final String RESUME
- See Also:
- Constant Field Values
-
LIST_CONSUMERS
public static final String LIST_CONSUMERS
- See Also:
- Constant Field Values
-
LIST_CONSUMERS_AS_JSON
public static final String LIST_CONSUMERS_AS_JSON
- See Also:
- Constant Field Values
-
LIST_SCHEDULED_MESSAGES
public static final String LIST_SCHEDULED_MESSAGES
- See Also:
- Constant Field Values
-
LIST_SCHEDULED_MESSAGES_AS_JSON
public static final String LIST_SCHEDULED_MESSAGES_AS_JSON
- See Also:
- Constant Field Values
-
LIST_DELIVERING_MESSAGES
public static final String LIST_DELIVERING_MESSAGES
- See Also:
- Constant Field Values
-
LIST_DELIVERING_MESSAGES_AS_JSON
public static final String LIST_DELIVERING_MESSAGES_AS_JSON
- See Also:
- Constant Field Values
-
PRIORITY_VALIDATOR
public static final org.jboss.as.controller.operations.validation.ParameterValidator PRIORITY_VALIDATOR
-
-
Method Detail
-
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:
executeRuntimeStepin classorg.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(org.apache.activemq.artemis.core.server.ActiveMQServer 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)
-
-