|
||||||||||
| 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. |
int |
cursorSize()
|
boolean |
doesCursorHaveMessagesBuffered()
|
boolean |
doesCursorHaveSpace()
|
long |
getCursorMemoryUsage()
|
int |
getCursorPercentUsage()
|
CompositeData |
getMessage(String messageId)
Retrieve a message from the destination's queue. |
boolean |
isCacheEnabled()
|
boolean |
isCursorFull()
|
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. |
boolean |
retryMessage(String messageId)
Moves a message back to its original destination |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueView(ManagedRegionBroker broker,
Queue destination)
| Method Detail |
|---|
public CompositeData getMessage(String messageId)
throws OpenDataException
QueueViewMBean
getMessage in interface QueueViewMBeanmessageId - the message id of the message to retrieve
OpenDataException
public void purge()
throws Exception
QueueViewMBean
purge in interface QueueViewMBeanException
public boolean removeMessage(String messageId)
throws Exception
QueueViewMBean
removeMessage in interface QueueViewMBeanException
public int removeMatchingMessages(String selector)
throws Exception
QueueViewMBean
removeMatchingMessages in interface QueueViewMBeanException
public int removeMatchingMessages(String selector,
int maximumMessages)
throws Exception
QueueViewMBean
removeMatchingMessages in interface QueueViewMBeanException
public boolean copyMessageTo(String messageId,
String destinationName)
throws Exception
QueueViewMBean
copyMessageTo in interface QueueViewMBeanException
public int copyMatchingMessagesTo(String selector,
String destinationName)
throws Exception
QueueViewMBean
copyMatchingMessagesTo in interface QueueViewMBeanException
public int copyMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
throws Exception
QueueViewMBean
copyMatchingMessagesTo in interface QueueViewMBeanException
public boolean moveMessageTo(String messageId,
String destinationName)
throws Exception
QueueViewMBean
moveMessageTo in interface QueueViewMBeanException
public int moveMatchingMessagesTo(String selector,
String destinationName)
throws Exception
QueueViewMBean
moveMatchingMessagesTo in interface QueueViewMBeanException
public int moveMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
throws Exception
QueueViewMBean
moveMatchingMessagesTo in interface QueueViewMBeanException
public 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 QueueViewMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||