org.apache.qpid.example.jmxexample
Class DeleteMessagesFromTopOfTmp
java.lang.Object
org.apache.qpid.example.jmxexample.DeleteMessagesFromTopOfTmp
public class DeleteMessagesFromTopOfTmp
- extends Object
Connects to a server and queries all info for tmp_* named queues, determines
their message count, and if this is above a given threshold deletes the
specified number of messages from the front of the queue
Method Summary |
static void |
main(String[] args)
Params:
0: host, e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteMessagesFromTopOfTmp
public DeleteMessagesFromTopOfTmp()
main
public static void main(String[] args)
throws Exception
- Params:
0: host, e.g. myserver.mydomain.com
1: port, e.g. 8999
2: Number of messages to delete, e.g. 1000
3: Threshold MessageCount on queue required before deletion will be undertaken e.g. 5000
- Throws:
Exception
Licensed to the Apache Software Foundation