cgl.narada.mgmt.common
Class DefaultBrokerProperties

java.lang.Object
  extended by cgl.narada.mgmt.common.DefaultBrokerProperties

public class DefaultBrokerProperties
extends Object

Stores information regarding the Default broker node and its configuration Created on Jan 10, 2006


Constructor Summary
DefaultBrokerProperties()
           
 
Method Summary
static Properties getBROKER_CONFIGURATION()
           
static String getBROKER_HOST()
           
static String getBROKER_HOST(int i)
          Returns the i'th broker from a list of preconfigured brokers
static int getNumberOfPreConfiguredHosts()
          Returns the number of preconfigured brokers
static String getPortForProtocol(Properties props, String protocol)
          Returns the default port for the specified protocol
static String getPortForProtocol(String protocol)
          Returns the default port for the specified protocol
static Enumeration getPrioritizedProtocolList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBrokerProperties

public DefaultBrokerProperties()
Method Detail

getBROKER_CONFIGURATION

public static final Properties getBROKER_CONFIGURATION()
Returns:
Returns the BROKER_CONFIGURATION.

getBROKER_HOST

public static final String getBROKER_HOST()
Returns:
Returns the BROKER_HOST.

getBROKER_HOST

public static final String getBROKER_HOST(int i)
Returns the i'th broker from a list of preconfigured brokers

Parameters:
i -
Returns:

getNumberOfPreConfiguredHosts

public static final int getNumberOfPreConfiguredHosts()
Returns the number of preconfigured brokers

Returns:
number of preconfigured brokers

getPortForProtocol

public static final String getPortForProtocol(Properties props,
                                              String protocol)
Returns the default port for the specified protocol

Parameters:
protocol - - the protocol in question
Returns:
The port number, if the protocol is valid, NULL otherwise

getPortForProtocol

public static final String getPortForProtocol(String protocol)
Returns the default port for the specified protocol

Parameters:
protocol - - the protocol in question
Returns:
The port number, if the protocol is valid, NULL otherwise

getPrioritizedProtocolList

public static Enumeration getPrioritizedProtocolList()


For comments and suggestions please send e-mail to The NaradaBrokering Project