|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.gridbus.broker.farming.common.BrokerProperties
This is the class which contains the global properties for the broker (loaded from Broker.properties file at runtime)
| Field Summary | |
static java.lang.String |
VERSION
Represents the version of the Broker |
| Constructor Summary | |
BrokerProperties()
|
|
| Method Summary | |
static java.util.Properties |
getBrokerProperties()
|
static java.lang.String |
getProperty(java.lang.String key)
Returns a specified property or null if it doesn't exist. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Returns a single property value for the given "key" |
static void |
setBrokerProperties(java.util.Properties prop)
Sets all the broker properties at once |
static void |
setProperty(java.lang.String key,
java.lang.String val)
Sets the property key with the value val |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION
| Constructor Detail |
public BrokerProperties()
| Method Detail |
public static java.lang.String getProperty(java.lang.String key)
throws GridBrokerException
key - The name or 'key' of the property
GridBrokerException - If BrokerProperties.setBrokerProperties() has not been called.
public static java.lang.String getProperty(java.lang.String key,
java.lang.String def)
key - : the name of the property to getdef - : default value to return
public static void setBrokerProperties(java.util.Properties prop)
prop - : Properties object which contains all the properties
public static void setProperty(java.lang.String key,
java.lang.String val)
throws GridBrokerException
key - : name of the property to setval - : value of the property to be set
GridBrokerExceptionpublic static java.util.Properties getBrokerProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||