org.apache.activemq.broker
Class BrokerRegistry

java.lang.Object
  extended by org.apache.activemq.broker.BrokerRegistry

public class BrokerRegistry
extends Object


Constructor Summary
BrokerRegistry()
           
 
Method Summary
 void bind(String brokerName, BrokerService broker)
           
 BrokerService findFirst()
          Returns the first registered broker found
 Map<String,BrokerService> getBrokers()
           
static BrokerRegistry getInstance()
           
 Object getRegistryMutext()
           
 BrokerService lookup(String brokerName)
           
 void unbind(String brokerName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerRegistry

public BrokerRegistry()
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.