activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r909298 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java
Date Fri, 12 Feb 2010 08:51:59 GMT
Author: rajdavies
Date: Fri Feb 12 08:51:58 2010
New Revision: 909298

URL: http://svn.apache.org/viewvc?rev=909298&view=rev
Log:
expose all brokers registered

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java?rev=909298&r1=909297&r2=909298&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerRegistry.java
Fri Feb 12 08:51:58 2010
@@ -16,10 +16,10 @@
  */
 package org.apache.activemq.broker;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -97,4 +97,8 @@
     public Object getRegistryMutext() {
         return mutex;
     }
+    
+    public Map<String, BrokerService> getBrokers() {
+        return Collections.unmodifiableMap(this.brokers);
+    }
 }



Mime
View raw message