org.apache.activemq.broker
Class BrokerRegistry
java.lang.Object
org.apache.activemq.broker.BrokerRegistry
public class BrokerRegistry
- extends Object
- Version:
- $Revision: 1.3 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrokerRegistry
public BrokerRegistry()
getInstance
public static BrokerRegistry getInstance()
lookup
public BrokerService lookup(String brokerName)
- Parameters:
brokerName
-
- Returns:
- the BrokerService
findFirst
public BrokerService findFirst()
- Returns the first registered broker found
- Returns:
- the first BrokerService
bind
public void bind(String brokerName,
BrokerService broker)
- Parameters:
brokerName
- broker
-
unbind
public void unbind(String brokerName)
- Parameters:
brokerName
-
getRegistryMutext
public Object getRegistryMutext()
- Returns:
- the mutex used
getBrokers
public Map<String,BrokerService> getBrokers()
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.