public class QueueControlImpl extends AbstractControl implements org.apache.activemq.artemis.api.core.management.QueueControl
| Modifier and Type | Field and Description |
|---|---|
static int |
FLUSH_LIMIT |
| Constructor and Description |
|---|
QueueControlImpl(Queue queue,
String address,
PostOffice postOffice,
StorageManager storageManager,
SecurityStore securityStore,
HierarchicalRepository<AddressSettings> addressSettingsRepository) |
blockOnIO, clearIO, getMBeanInfocacheMBeanInfo, 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 static final int FLUSH_LIMIT
public QueueControlImpl(Queue queue, String address, PostOffice postOffice, StorageManager storageManager, SecurityStore securityStore, HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception
Exceptionpublic void setMessageCounter(MessageCounter counter)
public String getName()
getName in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String getAddress()
getAddress in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String getFilter()
getFilter in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic boolean isDurable()
isDurable in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic boolean isTemporary()
isTemporary in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getMessageCount()
getMessageCount in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic int getConsumerCount()
getConsumerCount in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic int getDeliveringCount()
getDeliveringCount in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getMessagesAdded()
getMessagesAdded in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getMessagesAcknowledged()
getMessagesAcknowledged in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getMessagesExpired()
getMessagesExpired in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getMessagesKilled()
getMessagesKilled in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getID()
getID in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic long getScheduledCount()
getScheduledCount in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String getDeadLetterAddress()
getDeadLetterAddress in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String getExpiryAddress()
getExpiryAddress in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic Map<String,Object>[] listScheduledMessages() throws Exception
listScheduledMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String listScheduledMessagesAsJSON() throws Exception
listScheduledMessagesAsJSON in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic Map<String,Map<String,Object>[]> listDeliveringMessages() throws org.apache.activemq.artemis.api.core.ActiveMQException
listDeliveringMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlorg.apache.activemq.artemis.api.core.ActiveMQExceptionpublic String listDeliveringMessagesAsJSON() throws Exception
listDeliveringMessagesAsJSON in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic Map<String,Object>[] listMessages(String filterStr) throws Exception
listMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String listMessagesAsJSON(String filter) throws Exception
listMessagesAsJSON in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String getFirstMessageAsJSON() throws Exception
getFirstMessageAsJSON in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic Long getFirstMessageTimestamp() throws Exception
getFirstMessageTimestamp in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic Long getFirstMessageAge() throws Exception
getFirstMessageAge in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic long countMessages(String filterStr) throws Exception
countMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean removeMessage(long messageID)
throws Exception
removeMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int removeMessages(String filterStr) throws Exception
removeMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int removeMessages(int flushLimit,
String filterStr)
throws Exception
removeMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean expireMessage(long messageID)
throws Exception
expireMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int expireMessages(String filterStr) throws Exception
expireMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean retryMessage(long messageID)
throws Exception
retryMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int retryMessages()
throws Exception
retryMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean moveMessage(long messageID,
String otherQueueName)
throws Exception
moveMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean moveMessage(long messageID,
String otherQueueName,
boolean rejectDuplicates)
throws Exception
moveMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int moveMessages(String filterStr, String otherQueueName) throws Exception
moveMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int moveMessages(int flushLimit,
String filterStr,
String otherQueueName,
boolean rejectDuplicates)
throws Exception
moveMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int moveMessages(String filterStr, String otherQueueName, boolean rejectDuplicates) throws Exception
moveMessages in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int sendMessagesToDeadLetterAddress(String filterStr) throws Exception
sendMessagesToDeadLetterAddress in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String sendMessage(Map<String,String> headers, int type, String body, String userID, boolean durable, String user, String password) throws Exception
sendMessage in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean sendMessageToDeadLetterAddress(long messageID)
throws Exception
sendMessageToDeadLetterAddress in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic int changeMessagesPriority(String filterStr, int newPriority) throws Exception
changeMessagesPriority in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic boolean changeMessagePriority(long messageID,
int newPriority)
throws Exception
changeMessagePriority in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String listMessageCounter()
listMessageCounter in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic void resetMessageCounter()
resetMessageCounter in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String listMessageCounterAsHTML()
listMessageCounterAsHTML in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String listMessageCounterHistory() throws Exception
listMessageCounterHistory in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic String listMessageCounterHistoryAsHTML()
listMessageCounterHistoryAsHTML in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic void pause()
pause in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic void pause(boolean persist)
pause in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic void resume()
resume in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic boolean isPaused()
throws Exception
isPaused in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic CompositeData[] browse(String filterStr) throws Exception
browse in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic void flushExecutor()
flushExecutor in interface org.apache.activemq.artemis.api.core.management.QueueControlpublic String listConsumersAsJSON() throws Exception
listConsumersAsJSON in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionprotected MBeanOperationInfo[] fillMBeanOperationInfo()
fillMBeanOperationInfo in class AbstractControlprotected MBeanAttributeInfo[] fillMBeanAttributeInfo()
fillMBeanAttributeInfo in class AbstractControlpublic void resetMessagesAdded()
throws Exception
resetMessagesAdded in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic void resetMessagesAcknowledged()
throws Exception
resetMessagesAcknowledged in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionpublic void resetMessagesExpired()
throws Exception
resetMessagesExpired in interface org.apache.activemq.artemis.api.core.management.QueueControlExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.