Class QueueControlHandler
java.lang.Object
org.jboss.as.controller.AbstractRuntimeOnlyHandler
org.wildfly.extension.messaging.activemq.AbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
org.wildfly.extension.messaging.activemq.QueueControlHandler
- All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
public class QueueControlHandler
extends AbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
Handler for runtime operations that invoke on a ActiveMQ
QueueControl.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wildfly.extension.messaging.activemq.AbstractQueueControlHandler
AbstractQueueControlHandler.DelegatingQueueControl<T> -
Field Summary
FieldsFields inherited from class org.wildfly.extension.messaging.activemq.AbstractQueueControlHandler
CHANGE_MESSAGE_PRIORITY, CHANGE_MESSAGES_PRIORITY, COUNT_MESSAGES, EXPIRE_MESSAGE, EXPIRE_MESSAGES, LIST_CONSUMERS, LIST_CONSUMERS_AS_JSON, LIST_DELIVERING_MESSAGES, LIST_DELIVERING_MESSAGES_AS_JSON, LIST_MESSAGE_COUNTER, LIST_MESSAGE_COUNTER_AS_HTML, LIST_MESSAGE_COUNTER_AS_JSON, LIST_MESSAGE_COUNTER_HISTORY, LIST_MESSAGE_COUNTER_HISTORY_AS_HTML, LIST_MESSAGE_COUNTER_HISTORY_AS_JSON, LIST_MESSAGES, LIST_MESSAGES_AS_JSON, LIST_SCHEDULED_MESSAGES, LIST_SCHEDULED_MESSAGES_AS_JSON, MOVE_MESSAGE, MOVE_MESSAGES, PAUSE, PRIORITY_VALIDATOR, REMOVE_MESSAGE, REMOVE_MESSAGES, RESET_MESSAGE_COUNTER, RESUME, SEND_MESSAGE_TO_DEAD_LETTER_ADDRESS, SEND_MESSAGES_TO_DEAD_LETTER_ADDRESS -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) protected org.jboss.as.controller.AttributeDefinitionprotected AbstractQueueControlHandler.DelegatingQueueControl<org.apache.activemq.artemis.api.core.management.QueueControl>getQueueControl(ActiveMQBroker server, String queueName) protected org.jboss.as.controller.AttributeDefinition[]protected ObjecthandleAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, org.apache.activemq.artemis.api.core.management.QueueControl queueControl) protected booleanresourceMustExist(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) protected voidrevertAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, org.apache.activemq.artemis.api.core.management.QueueControl queueControl, Object handback) Methods inherited from class org.wildfly.extension.messaging.activemq.AbstractQueueControlHandler
getReplyMapConsumerMessageParameterDefinition, registerOperations, throwUnimplementedOperationExceptionMethods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime
-
Field Details
-
INSTANCE
-
-
Method Details
-
getMessageIDAttributeDefinition
protected org.jboss.as.controller.AttributeDefinition getMessageIDAttributeDefinition()- Specified by:
getMessageIDAttributeDefinitionin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
-
getReplyMessageParameterDefinitions
protected org.jboss.as.controller.AttributeDefinition[] getReplyMessageParameterDefinitions()- Specified by:
getReplyMessageParameterDefinitionsin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
-
resourceMustExist
protected boolean resourceMustExist(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) - Overrides:
resourceMustExistin classorg.jboss.as.controller.AbstractRuntimeOnlyHandler
-
executeRuntimeStep
protected void executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException - Overrides:
executeRuntimeStepin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>- Throws:
org.jboss.as.controller.OperationFailedException
-
handleAdditionalOperation
protected Object handleAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, org.apache.activemq.artemis.api.core.management.QueueControl queueControl) throws org.jboss.as.controller.OperationFailedException - Specified by:
handleAdditionalOperationin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>- Throws:
org.jboss.as.controller.OperationFailedException
-
revertAdditionalOperation
protected void revertAdditionalOperation(String operationName, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.OperationContext context, org.apache.activemq.artemis.api.core.management.QueueControl queueControl, Object handback) - Specified by:
revertAdditionalOperationin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
-
getQueueControl
protected AbstractQueueControlHandler.DelegatingQueueControl<org.apache.activemq.artemis.api.core.management.QueueControl> getQueueControl(ActiveMQBroker server, String queueName) - Specified by:
getQueueControlin classAbstractQueueControlHandler<org.apache.activemq.artemis.api.core.management.QueueControl>
-