org.gridbus.broker.common
Class BrokerProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.gridbus.broker.common.BrokerProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public final class BrokerProperties
extends java.util.Properties

This is the class which contains the global properties for the broker (loaded from Broker.properties file at runtime) The properties should not be changed once they are set.

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au), Krishna Nadiminti (kna@cs.mu.oz.au)
See Also:
Serialized Form

Field Summary
static java.lang.String JOBMONITOR_POLL_INTERVAL
          The polling interval for job monitor.
static java.lang.String PERSISTENCE_DB
          The persistence database startup mode: AUTO/MANUAL.
static java.lang.String SCHEDULER_POLL_INTERVAL
          The polling interval for polling schedulers.
static java.lang.String SERVICEMONITOR_POLL_INTERVAL
          The polling interval for service monitor.
static java.lang.String VERSION
          The version of the Broker
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
BrokerProperties()
           
BrokerProperties(boolean loadDefault)
           
 
Method Summary
 void loadConfig()
          Configures the properties
 void loadDefaultConfig()
          Loads the default configuration
 java.lang.String toString()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The version of the Broker

See Also:
Constant Field Values

SCHEDULER_POLL_INTERVAL

public static final java.lang.String SCHEDULER_POLL_INTERVAL
The polling interval for polling schedulers. (in seconds) : Default 15 seconds.

See Also:
Constant Field Values

JOBMONITOR_POLL_INTERVAL

public static final java.lang.String JOBMONITOR_POLL_INTERVAL
The polling interval for job monitor. (in seconds) : Default 15 seconds.

See Also:
Constant Field Values

SERVICEMONITOR_POLL_INTERVAL

public static final java.lang.String SERVICEMONITOR_POLL_INTERVAL
The polling interval for service monitor. (in seconds) : Default 15 seconds.

See Also:
Constant Field Values

PERSISTENCE_DB

public static final java.lang.String PERSISTENCE_DB
The persistence database startup mode: AUTO/MANUAL. AUTO specifies that the broker will start up a HSQLDB server when it starts. MANUAL specifies that the user will have to use an existing database server. The hibernate config file will need to be configured to use the appropriate server. This server will be stopped when the broker stops.

See Also:
Constant Field Values
Constructor Detail

BrokerProperties

public BrokerProperties()

BrokerProperties

public BrokerProperties(boolean loadDefault)
Parameters:
loadDefault -
Method Detail

loadDefaultConfig

public void loadDefaultConfig()
Loads the default configuration


loadConfig

public void loadConfig()
Configures the properties


toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Returns:
string representation of all properties

Copyright © The University of Melbourne. 2006