From 6abfd1795522bc41d281ba3218df1f4979a55546 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Fri, 24 Jul 2009 14:21:06 +0000 Subject: 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 --- .../apache/qpid/management/common/mbeans/ManagedBroker.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'java/management/common/src') 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; @@ -51,6 +54,15 @@ public interface ManagedBroker @MBeanAttribute(name="ExchangeTypes", description = "The types of Exchange available for creation.") 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 viewQueueNamesDepths() throws IOException; + /** * Creates a new Exchange. * @param name -- cgit v1.2.1