diff options
author | Robert Gemmell <robbie@apache.org> | 2009-07-24 14:21:06 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2009-07-24 14:21:06 +0000 |
commit | 6abfd1795522bc41d281ba3218df1f4979a55546 (patch) | |
tree | b5e198f48cdb3552bcf76c5ecd135a00890049bb /java/management/common/src | |
parent | 78aab9c716dc77d00554769ea7259a4b333c7d05 (diff) | |
download | qpid-python-6abfd1795522bc41d281ba3218df1f4979a55546.tar.gz |
QPID-2000: add a method to the VirtualHostManager MBean to retrieve a Map keyed by Queue names in the vhost, with values indicating their respective depths in bytes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797473 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/ManagedBroker.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedBroker.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedBroker.java index 224bf8de2c..e376033bad 100644 --- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedBroker.java +++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedBroker.java @@ -22,9 +22,12 @@ package org.apache.qpid.management.common.mbeans; import java.io.IOException; +import java.util.Map; import javax.management.JMException; import javax.management.MBeanOperationInfo; +import javax.management.openmbean.OpenDataException; +import javax.management.openmbean.TabularData; import org.apache.qpid.management.common.mbeans.annotations.MBeanAttribute; import org.apache.qpid.management.common.mbeans.annotations.MBeanOperation; @@ -52,6 +55,15 @@ public interface ManagedBroker String[] getExchangeTypes() throws IOException; /** + * Returns a Map keyed by QueueName, detailing its associated QueueDepth in bytes. + * @since Qpid JMX API 1.3 + * @throws IOException + */ + @MBeanOperation(name = "viewQueueNamesDepths", description = "View the queue names and depths in this virtualhost", + impact = MBeanOperationInfo.INFO) + Map<String,Long> viewQueueNamesDepths() throws IOException; + + /** * Creates a new Exchange. * @param name * @param type |