summaryrefslogtreecommitdiff
path: root/java/management/common/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2009-07-21 09:13:06 +0000
committerRobert Gemmell <robbie@apache.org>2009-07-21 09:13:06 +0000
commit946d6c971182b849bcf6656b073501c9eb2a6cf7 (patch)
tree86585a95d625ecbe20913b99976ea29ae46eddfe /java/management/common/src
parent6447a16f4196da92def8b834423659a187fc96af (diff)
downloadqpid-python-946d6c971182b849bcf6656b073501c9eb2a6cf7.tar.gz
QPID-1981: Expose copyMessages() queue operation through the JMX MBean interface
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796204 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.java16
1 files changed, 16 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 aeb98fef42..9046d7fcb7 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
@@ -298,4 +298,20 @@ public interface ManagedQueue
void deleteMessages(@MBeanOperationParameter(name="from MessageId", description="from MessageId")long fromMessageId,
@MBeanOperationParameter(name="to MessageId", description="to MessageId")long toMessageId)
throws IOException, JMException;
+
+ /**
+ * Copies the messages in given range of AMQ message Ids to a given Queue.
+ * @param fromMessageId first in the range of message ids
+ * @param toMessageId last in the range of message ids
+ * @param toQueue where the messages are to be copied
+ * @throws IOException
+ * @throws JMException
+ */
+ @MBeanOperation(name="copyMessages",
+ description="Copies a range of messages to a specified queue",
+ impact= MBeanOperationInfo.ACTION)
+ void copyMessages(@MBeanOperationParameter(name="from MessageId", description="from MessageId")long fromMessageId,
+ @MBeanOperationParameter(name="to MessageId", description="to MessageId")long toMessageId,
+ @MBeanOperationParameter(name= ManagedQueue.TYPE, description="to Queue Name")String toQueue)
+ throws IOException, JMException;
}