public class QueueView extends DestinationView implements QueueViewMBean
broker, destination| Constructor and Description |
|---|
QueueView(ManagedRegionBroker broker,
Queue destination) |
| Modifier and Type | Method and Description |
|---|---|
int |
copyMatchingMessagesTo(String selector,
String destinationName)
Copies the messages matching the given selector
|
int |
copyMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
Copies the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
copyMessageTo(String messageId,
String destinationName)
Copies a given message to another destination.
|
int |
cursorSize() |
boolean |
doesCursorHaveMessagesBuffered() |
boolean |
doesCursorHaveSpace() |
long |
getCursorMemoryUsage() |
int |
getCursorPercentUsage() |
CompositeData |
getMessage(String messageId)
Retrieve a message from the destination's queue.
|
Map<String,String> |
getMessageGroups() |
String |
getMessageGroupType() |
boolean |
isCacheEnabled() |
boolean |
isCursorFull() |
boolean |
isPaused() |
int |
moveMatchingMessagesTo(String selector,
String destinationName)
Moves the messages matching the given selector
|
int |
moveMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
Moves the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
moveMessageTo(String messageId,
String destinationName)
Moves the message to another destination.
|
void |
pause() |
void |
purge()
Removes all of the messages in the queue.
|
void |
removeAllMessageGroups()
remove all the message groups - will rebalance all message groups across consumers
|
int |
removeMatchingMessages(String selector)
Removes the messages matching the given selector
|
int |
removeMatchingMessages(String selector,
int maximumMessages)
Removes the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
removeMessage(String messageId)
Removes a message from the queue.
|
void |
removeMessageGroup(String groupName)
remove a message group = has the effect of rebalancing group
|
void |
resume() |
boolean |
retryMessage(String messageId)
Moves a message back to its original destination
|
int |
retryMessages()
Retries messages sent to the DLQ
|
browse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, gc, getAverageBlockedTime, getAverageEnqueueTime, getAverageMessageSize, getBlockedProducerWarningInterval, getBlockedSends, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getExpiredCount, getForwardCount, getInFlightCount, getMaxAuditDepth, getMaxEnqueueTime, getMaxMessageSize, getMaxPageSize, getMaxProducersToAudit, getMemoryLimit, getMemoryPercentUsage, getMemoryUsageByteCount, getMemoryUsagePortion, getMessagesCached, getMinEnqueueTime, getMinMessageSize, getName, getOptions, getProducerCount, getQueueSize, getSlowConsumerStrategy, getSubscriptions, getTotalBlockedTime, isAlwaysRetroactive, isDLQ, isEnableAudit, isPrioritizedMessages, isProducerFlowControl, isUseCache, resetStatistics, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessageWithProperties, setAlwaysRetroactive, setBlockedProducerWarningInterval, setEnableAudit, setMaxAuditDepth, setMaxPageSize, setMaxProducersToAudit, setMemoryLimit, setMemoryUsagePortion, setProducerFlowControl, setUseCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbrowse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, getAverageBlockedTime, getAverageEnqueueTime, getAverageMessageSize, getBlockedProducerWarningInterval, getBlockedSends, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getExpiredCount, getForwardCount, getInFlightCount, getMaxAuditDepth, getMaxEnqueueTime, getMaxMessageSize, getMaxPageSize, getMaxProducersToAudit, getMemoryLimit, getMemoryPercentUsage, getMemoryUsageByteCount, getMemoryUsagePortion, getMinEnqueueTime, getMinMessageSize, getName, getOptions, getProducerCount, getQueueSize, getSlowConsumerStrategy, getSubscriptions, getTotalBlockedTime, isAlwaysRetroactive, isDLQ, isPrioritizedMessages, isProducerFlowControl, isUseCache, resetStatistics, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessageWithProperties, setAlwaysRetroactive, setBlockedProducerWarningInterval, setMaxAuditDepth, setMaxPageSize, setMaxProducersToAudit, setMemoryLimit, setMemoryUsagePortion, setProducerFlowControl, setUseCachepublic QueueView(ManagedRegionBroker broker, Queue destination)
public CompositeData getMessage(String messageId) throws OpenDataException
QueueViewMBeangetMessage in interface QueueViewMBeanmessageId - the message id of the message to retrieveOpenDataExceptionpublic void purge() throws Exception
QueueViewMBeanpurge in interface QueueViewMBeanExceptionpublic boolean removeMessage(String messageId) throws Exception
QueueViewMBeanremoveMessage in interface QueueViewMBeanExceptionpublic int removeMatchingMessages(String selector) throws Exception
QueueViewMBeanremoveMatchingMessages in interface QueueViewMBeanExceptionpublic int removeMatchingMessages(String selector, int maximumMessages) throws Exception
QueueViewMBeanremoveMatchingMessages in interface QueueViewMBeanExceptionpublic boolean copyMessageTo(String messageId, String destinationName) throws Exception
QueueViewMBeancopyMessageTo in interface QueueViewMBeanExceptionpublic int copyMatchingMessagesTo(String selector, String destinationName) throws Exception
QueueViewMBeancopyMatchingMessagesTo in interface QueueViewMBeanExceptionpublic int copyMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
QueueViewMBeancopyMatchingMessagesTo in interface QueueViewMBeanExceptionpublic boolean moveMessageTo(String messageId, String destinationName) throws Exception
QueueViewMBeanmoveMessageTo in interface QueueViewMBeanExceptionpublic int moveMatchingMessagesTo(String selector, String destinationName) throws Exception
QueueViewMBeanmoveMatchingMessagesTo in interface QueueViewMBeanExceptionpublic int moveMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
QueueViewMBeanmoveMatchingMessagesTo in interface QueueViewMBeanExceptionpublic int retryMessages() throws Exception
QueueViewMBeanretryMessages in interface QueueViewMBeanExceptionpublic boolean retryMessage(String messageId) throws Exception
retryMessage in interface QueueViewMBeanExceptionpublic int cursorSize()
cursorSize in interface QueueViewMBeanpublic boolean doesCursorHaveMessagesBuffered()
doesCursorHaveMessagesBuffered in interface QueueViewMBeanpublic boolean doesCursorHaveSpace()
doesCursorHaveSpace in interface QueueViewMBeanpublic long getCursorMemoryUsage()
getCursorMemoryUsage in interface QueueViewMBeanpublic int getCursorPercentUsage()
getCursorPercentUsage in interface QueueViewMBeanpublic boolean isCursorFull()
isCursorFull in interface QueueViewMBeanpublic boolean isCacheEnabled()
isCacheEnabled in interface QueueViewMBeanpublic Map<String,String> getMessageGroups()
getMessageGroups in interface QueueViewMBeanpublic String getMessageGroupType()
getMessageGroupType in interface QueueViewMBeanpublic void removeMessageGroup(String groupName)
removeMessageGroup in interface QueueViewMBeanpublic void removeAllMessageGroups()
removeAllMessageGroups in interface QueueViewMBeanpublic void pause()
pause in interface QueueViewMBeanpublic void resume()
resume in interface QueueViewMBeanpublic boolean isPaused()
isPaused in interface QueueViewMBeanCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.