diff options
author | Robert Gemmell <robbie@apache.org> | 2009-07-21 09:12:28 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2009-07-21 09:12:28 +0000 |
commit | 6447a16f4196da92def8b834423659a187fc96af (patch) | |
tree | 170ea7279715a8881116c718fea1cc3ff377e451 /java/management/common/src | |
parent | 6eab5ad04372862ab3284cbf547e028e308c601a (diff) | |
download | qpid-python-6447a16f4196da92def8b834423659a187fc96af.tar.gz |
QPID-1968: Expose deleteMessages() queue operation through the JMX MBean interface, add test for deleteMessages()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796203 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.java | 14 |
1 files changed, 14 insertions, 0 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 1232cfc9b4..aeb98fef42 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 @@ -284,4 +284,18 @@ public interface ManagedQueue @MBeanOperationParameter(name="to MessageId", description="to MessageId")long toMessageId, @MBeanOperationParameter(name= ManagedQueue.TYPE, description="to Queue Name")String toQueue) throws IOException, JMException; + + /** + * Deletes the messages in given range of AMQ message Ids in the given Queue. + * @param fromMessageId first in the range of message ids + * @param toMessageId last in the range of message ids + * @throws IOException + * @throws JMException + */ + @MBeanOperation(name="deleteMessages", + description="Delete a range of messages from a specified queue", + impact= MBeanOperationInfo.ACTION) + void deleteMessages(@MBeanOperationParameter(name="from MessageId", description="from MessageId")long fromMessageId, + @MBeanOperationParameter(name="to MessageId", description="to MessageId")long toMessageId) + throws IOException, JMException; } |