public class JMSQueueControlImpl extends StandardMBean implements JMSQueueControl
| Constructor and Description |
|---|
JMSQueueControlImpl(ActiveMQDestination managedQueue,
QueueControl coreQueueControl,
JMSServerManager jmsServerManager,
org.apache.activemq.artemis.core.messagecounter.MessageCounter counter) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic JMSQueueControlImpl(ActiveMQDestination managedQueue, QueueControl coreQueueControl, JMSServerManager jmsServerManager, org.apache.activemq.artemis.core.messagecounter.MessageCounter counter) throws Exception
Exceptionpublic static String createFilterFromJMSSelector(String selectorStr) throws ActiveMQException
ActiveMQExceptionpublic String getName()
getName in interface DestinationControlpublic String getAddress()
getAddress in interface DestinationControlpublic boolean isTemporary()
isTemporary in interface DestinationControlpublic long getMessageCount()
getMessageCount in interface DestinationControlpublic long getMessagesAdded()
getMessagesAdded in interface DestinationControlpublic int getConsumerCount()
getConsumerCount in interface JMSQueueControlpublic int getDeliveringCount()
getDeliveringCount in interface DestinationControlpublic long getScheduledCount()
getScheduledCount in interface JMSQueueControlpublic boolean isDurable()
public String getDeadLetterAddress()
getDeadLetterAddress in interface JMSQueueControlpublic String getExpiryAddress()
getExpiryAddress in interface JMSQueueControlpublic String getFirstMessageAsJSON() throws Exception
getFirstMessageAsJSON in interface JMSQueueControlExceptionpublic Long getFirstMessageTimestamp() throws Exception
getFirstMessageTimestamp in interface JMSQueueControlExceptionpublic Long getFirstMessageAge() throws Exception
getFirstMessageAge in interface JMSQueueControlExceptionpublic void addBinding(String binding) throws Exception
addBinding in interface JMSQueueControlExceptionpublic String[] getRegistryBindings()
getRegistryBindings in interface JMSQueueControlpublic boolean removeMessage(String messageID) throws Exception
removeMessage in interface JMSQueueControlExceptionpublic int removeMessages(String filterStr) throws Exception
removeMessages in interface DestinationControlremoveMessages in interface JMSQueueControlExceptionpublic Map<String,Object>[] listMessages(String filterStr) throws Exception
listMessages in interface JMSQueueControlExceptionpublic Map<String,Object>[] listScheduledMessages() throws Exception
listScheduledMessages in interface JMSQueueControlExceptionpublic String listScheduledMessagesAsJSON() throws Exception
listScheduledMessagesAsJSON in interface JMSQueueControlExceptionpublic Map<String,Map<String,Object>[]> listDeliveringMessages() throws Exception
listDeliveringMessages in interface JMSQueueControlExceptionpublic String listDeliveringMessagesAsJSON() throws Exception
listDeliveringMessagesAsJSON in interface JMSQueueControlExceptionpublic String listMessagesAsJSON(String filter) throws Exception
listMessagesAsJSON in interface JMSQueueControlExceptionpublic long countMessages(String filterStr) throws Exception
countMessages in interface JMSQueueControlExceptionpublic boolean expireMessage(String messageID) throws Exception
expireMessage in interface JMSQueueControlExceptionpublic int expireMessages(String filterStr) throws Exception
expireMessages in interface JMSQueueControlExceptionpublic boolean sendMessageToDeadLetterAddress(String messageID) throws Exception
sendMessageToDeadLetterAddress in interface JMSQueueControlExceptionpublic int sendMessagesToDeadLetterAddress(String filterStr) throws Exception
sendMessagesToDeadLetterAddress in interface JMSQueueControlExceptionpublic boolean changeMessagePriority(String messageID, int newPriority) throws Exception
changeMessagePriority in interface JMSQueueControlExceptionpublic int changeMessagesPriority(String filterStr, int newPriority) throws Exception
changeMessagesPriority in interface JMSQueueControlExceptionpublic boolean moveMessage(String messageID, String otherQueueName) throws Exception
moveMessage in interface JMSQueueControlExceptionpublic boolean moveMessage(String messageID, String otherQueueName, boolean rejectDuplicates) throws Exception
moveMessage in interface JMSQueueControlExceptionpublic int moveMessages(String filterStr, String otherQueueName, boolean rejectDuplicates) throws Exception
moveMessages in interface JMSQueueControlExceptionpublic int moveMessages(String filterStr, String otherQueueName) throws Exception
moveMessages in interface JMSQueueControlExceptionpublic String listConsumersAsJSON() throws Exception
listConsumersAsJSON in interface JMSQueueControlExceptionpublic String listMessageCounter()
listMessageCounter in interface JMSQueueControlpublic void resetMessageCounter()
throws Exception
resetMessageCounter in interface JMSQueueControlExceptionpublic String listMessageCounterAsHTML()
listMessageCounterAsHTML in interface JMSQueueControlpublic String listMessageCounterHistory() throws Exception
listMessageCounterHistory in interface JMSQueueControlExceptionpublic String listMessageCounterHistoryAsHTML()
listMessageCounterHistoryAsHTML in interface JMSQueueControlpublic boolean isPaused()
throws Exception
isPaused in interface JMSQueueControlExceptionpublic void pause()
throws Exception
pause in interface JMSQueueControlExceptionpublic void resume()
throws Exception
resume in interface JMSQueueControlExceptionpublic String getSelector()
getSelector in interface JMSQueueControlpublic void flushExecutor()
flushExecutor in interface JMSQueueControlpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class StandardMBeanCopyright © 2015 The Apache Software Foundation. All Rights Reserved.