summaryrefslogtreecommitdiff
path: root/java/management/common/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2009-08-10 15:01:01 +0000
committerRobert Gemmell <robbie@apache.org>2009-08-10 15:01:01 +0000
commit5518c23f9a69f6d616abc770bda0677b2f0b51ac (patch)
treec68db3e896175865627810b0df60795443d77101 /java/management/common/src
parentf292bd4d74162a7017cf5cec3b6d624da34c7a1f (diff)
downloadqpid-python-5518c23f9a69f6d616abc770bda0677b2f0b51ac.tar.gz
QPID-2018: Updated AMQQueueMBean to make use of the AMQQueue clearQueue return value to report the number of messages deleted. Updated management console accordingly, also indicating that it is only non-acquired messaes that are cleared
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@802819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/common/src')
-rw-r--r--java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java
index abcbaa8693..ff4edb4ddd 100644
--- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java
+++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java
@@ -291,14 +291,18 @@ public interface ManagedQueue
void deleteMessageFromTop() throws IOException, JMException;
/**
- * Clears the queue by deleting all the undelivered messages from the queue.
+ * Clears the queue by deleting all the messages from the queue that have not been acquired by consumers"
+ *
+ * Since Qpid JMX API 1.3 this returns the number of messages deleted. Prior to this, the return type was void.
+ * @return the number of messages deleted
* @throws IOException
* @throws JMException
*/
@MBeanOperation(name="clearQueue",
- description="Clears the queue by deleting all the undelivered messages from the queue",
+ description="Clears the queue by deleting all the messages from the queue " +
+ "that have not been acquired by consumers",
impact= MBeanOperationInfo.ACTION)
- void clearQueue() throws IOException, JMException;
+ Long clearQueue() throws IOException, JMException;
/**
* Moves the messages in given range of message Ids to given Queue. QPID-170