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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExposes the method signatures that are common betweenorg.apache.activemq.api.core.management.QueueControlandorg.apache.activemq.api.jms.management.JMSQueueControl. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.jboss.as.controller.operations.validation.ParameterValidatorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) protected abstract org.jboss.as.controller.AttributeDefinitionprotected abstract AbstractQueueControlHandler.DelegatingQueueControl<T>getQueueControl(ActiveMQBroker server, String queueName) protected org.jboss.as.controller.AttributeDefinition[]protected abstract org.jboss.as.controller.AttributeDefinition[]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 final voidthrowUnimplementedOperationException(String operationName) Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
Field Details
-
LIST_MESSAGES
- See Also:
-
LIST_MESSAGES_AS_JSON
- See Also:
-
COUNT_MESSAGES
- See Also:
-
REMOVE_MESSAGE
- See Also:
-
REMOVE_MESSAGES
- See Also:
-
EXPIRE_MESSAGES
- See Also:
-
EXPIRE_MESSAGE
- See Also:
-
SEND_MESSAGE_TO_DEAD_LETTER_ADDRESS
- See Also:
-
SEND_MESSAGES_TO_DEAD_LETTER_ADDRESS
- See Also:
-
CHANGE_MESSAGE_PRIORITY
- See Also:
-
CHANGE_MESSAGES_PRIORITY
- See Also:
-
MOVE_MESSAGE
- See Also:
-
MOVE_MESSAGES
- See Also:
-
LIST_MESSAGE_COUNTER
- See Also:
-
LIST_MESSAGE_COUNTER_AS_JSON
- See Also:
-
LIST_MESSAGE_COUNTER_AS_HTML
- See Also:
-
RESET_MESSAGE_COUNTER
- See Also:
-
LIST_MESSAGE_COUNTER_HISTORY
- See Also:
-
LIST_MESSAGE_COUNTER_HISTORY_AS_JSON
- See Also:
-
LIST_MESSAGE_COUNTER_HISTORY_AS_HTML
- See Also:
-
PAUSE
- See Also:
-
RESUME
- See Also:
-
LIST_CONSUMERS
- See Also:
-
LIST_CONSUMERS_AS_JSON
- See Also:
-
LIST_SCHEDULED_MESSAGES
- See Also:
-
LIST_SCHEDULED_MESSAGES_AS_JSON
- See Also:
-
LIST_DELIVERING_MESSAGES
- See Also:
-
LIST_DELIVERING_MESSAGES_AS_JSON
- See Also:
-
PRIORITY_VALIDATOR
public static final org.jboss.as.controller.operations.validation.ParameterValidator PRIORITY_VALIDATOR
-
-
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:
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(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
-
throwUnimplementedOperationException
-