|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.jmx.DestinationView
org.apache.activemq.broker.jmx.QueueView
public class QueueView
Provides a JMX Management view of a Queue.
Field Summary |
---|
Fields inherited from class org.apache.activemq.broker.jmx.DestinationView |
---|
broker, destination |
Constructor Summary | |
---|---|
QueueView(ManagedRegionBroker broker,
Queue destination)
|
Method Summary | |
---|---|
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. |
CompositeData |
getMessage(String messageId)
Retrieve a message from the destination's queue. |
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 |
purge()
Removes all of the messages in the queue. |
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. |
Methods inherited from class org.apache.activemq.broker.jmx.DestinationView |
---|
browse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, gc, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getMemoryLimit, getMemoryPercentageUsed, getMessagesCached, getName, getQueueSize, resetStatistics, sendTextMessage, sendTextMessage, setMemoryLimit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.activemq.broker.jmx.DestinationViewMBean |
---|
browse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getMemoryLimit, getMemoryPercentageUsed, getName, getQueueSize, resetStatistics, sendTextMessage, sendTextMessage, setMemoryLimit |
Constructor Detail |
---|
public QueueView(ManagedRegionBroker broker, Queue destination)
Method Detail |
---|
public CompositeData getMessage(String messageId) throws OpenDataException
QueueViewMBean
getMessage
in interface QueueViewMBean
messageId
- the message id of the message to retrieve
OpenDataException
public void purge()
QueueViewMBean
purge
in interface QueueViewMBean
public boolean removeMessage(String messageId) throws Exception
QueueViewMBean
removeMessage
in interface QueueViewMBean
Exception
public int removeMatchingMessages(String selector) throws Exception
QueueViewMBean
removeMatchingMessages
in interface QueueViewMBean
Exception
public int removeMatchingMessages(String selector, int maximumMessages) throws Exception
QueueViewMBean
removeMatchingMessages
in interface QueueViewMBean
Exception
public boolean copyMessageTo(String messageId, String destinationName) throws Exception
QueueViewMBean
copyMessageTo
in interface QueueViewMBean
Exception
public int copyMatchingMessagesTo(String selector, String destinationName) throws Exception
QueueViewMBean
copyMatchingMessagesTo
in interface QueueViewMBean
Exception
public int copyMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
QueueViewMBean
copyMatchingMessagesTo
in interface QueueViewMBean
Exception
public boolean moveMessageTo(String messageId, String destinationName) throws Exception
QueueViewMBean
moveMessageTo
in interface QueueViewMBean
Exception
public int moveMatchingMessagesTo(String selector, String destinationName) throws Exception
QueueViewMBean
moveMatchingMessagesTo
in interface QueueViewMBean
Exception
public int moveMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
QueueViewMBean
moveMatchingMessagesTo
in interface QueueViewMBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |