mirror of https://github.com/apache/activemq.git
expose all brokers registered
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@909298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b84da17004
commit
84c76a94a0
|
@ -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 class BrokerRegistry {
|
|||
public Object getRegistryMutext() {
|
||||
return mutex;
|
||||
}
|
||||
|
||||
public Map<String, BrokerService> getBrokers() {
|
||||
return Collections.unmodifiableMap(this.brokers);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue