From e9cc17f9cf25c918b05c5b433360c66526a8d394 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Wed, 22 Jul 2009 13:09:44 +0000 Subject: QPID-1967: collect possible Exchange Type values from the broker instead of relying on default set within the management console git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796693 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/management/common/mbeans/ManagedBroker.java | 9 +++++++++ 1 file changed, 9 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 913ff1d022..224bf8de2c 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 @@ -26,6 +26,7 @@ import java.io.IOException; import javax.management.JMException; import javax.management.MBeanOperationInfo; +import org.apache.qpid.management.common.mbeans.annotations.MBeanAttribute; import org.apache.qpid.management.common.mbeans.annotations.MBeanOperation; import org.apache.qpid.management.common.mbeans.annotations.MBeanOperationParameter; @@ -42,6 +43,14 @@ public interface ManagedBroker static final int VERSION = 1 ; + /** + * Returns an array of the exchange types available for creation. + * @since Qpid JMX API 1.3 + * @throws IOException + */ + @MBeanAttribute(name="ExchangeTypes", description = "The types of Exchange available for creation.") + String[] getExchangeTypes() throws IOException; + /** * Creates a new Exchange. * @param name -- cgit v1.2.1