org.gridbus.broker.farming.common
Class BrokerProperties

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

public 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 APPLICATION_DECRIPTION
          The application description used for the current grid application
static java.lang.String BROKER_ID
          The unique id of the current broker instance
static java.lang.String BUDGET
          The budget for the current grid application
static java.lang.String DEADLINE
          The deadline for the current grid application
static java.lang.String ENV
          The environment under which the broker is running.
static java.lang.String LOCAL_DIR
          The local directory which is used to get inputs for the broker
static java.lang.String PERSISTENCE_DB_CONNECTIONSTRING
          Persistence database connection string
static java.lang.String PERSISTENCE_DB_DRIVER
          JDBC Driver class for persistence database
static java.lang.String PERSISTENCE_DB_PASSWORD
          Persistence database password
static java.lang.String PERSISTENCE_DB_USERNAME
          Persistence database username
static java.lang.String PERSISTENCE_MODE
          Persistence mode
static java.lang.String RESOURCE_DESCRIPTION
          The resource description used for the current grid application
static java.lang.String SCHEDULE_ALGORITHM
          The scheduling algorithm used for the current grid application
static java.lang.String SCHEDULER_POLL_INTERVAL
          The polling interval for polling schedulers.
static java.lang.String TEMP_DIR
          The temporary directory on the broker side, which is created at runtime.
static java.lang.String USE_PERSISTENCE
          Use Persistence for the broker? NOTE: Should always be set to true because persistence is now needed to be on always.
static java.lang.String VERSION
          The version of the Broker
 
Constructor Summary
BrokerProperties()
           
BrokerProperties(boolean loadDefault)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 void loadConfig()
          Configures the properties
 void loadDefaultConfig()
          Loads the default configuration
 java.lang.String toString()
           
 
Methods inherited from class java.util.Properties
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, remove, size, values
 
Methods inherited from class java.lang.Object
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

BROKER_ID

public static final java.lang.String BROKER_ID
The unique id of the current broker instance

See Also:
Constant Field Values

LOCAL_DIR

public static final java.lang.String LOCAL_DIR
The local directory which is used to get inputs for the broker

See Also:
Constant Field Values

TEMP_DIR

public static final java.lang.String TEMP_DIR
The temporary directory on the broker side, which is created at runtime. This is where the job outputs are copied back.

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)

See Also:
Constant Field Values

DEADLINE

public static final java.lang.String DEADLINE
The deadline for the current grid application

See Also:
Constant Field Values

BUDGET

public static final java.lang.String BUDGET
The budget for the current grid application

See Also:
Constant Field Values

APPLICATION_DECRIPTION

public static final java.lang.String APPLICATION_DECRIPTION
The application description used for the current grid application

See Also:
Constant Field Values

RESOURCE_DESCRIPTION

public static final java.lang.String RESOURCE_DESCRIPTION
The resource description used for the current grid application

See Also:
Constant Field Values

ENV

public static final java.lang.String ENV
The environment under which the broker is running. (CLI / WEB / UNKNOWN)

See Also:
Constant Field Values

SCHEDULE_ALGORITHM

public static final java.lang.String SCHEDULE_ALGORITHM
The scheduling algorithm used for the current grid application

See Also:
Constant Field Values

USE_PERSISTENCE

public static final java.lang.String USE_PERSISTENCE
Use Persistence for the broker? NOTE: Should always be set to true because persistence is now needed to be on always.

See Also:
Constant Field Values

PERSISTENCE_MODE

public static final java.lang.String PERSISTENCE_MODE
Persistence mode

See Also:
Constant Field Values

PERSISTENCE_DB_DRIVER

public static final java.lang.String PERSISTENCE_DB_DRIVER
JDBC Driver class for persistence database

See Also:
Constant Field Values

PERSISTENCE_DB_CONNECTIONSTRING

public static final java.lang.String PERSISTENCE_DB_CONNECTIONSTRING
Persistence database connection string

See Also:
Constant Field Values

PERSISTENCE_DB_USERNAME

public static final java.lang.String PERSISTENCE_DB_USERNAME
Persistence database username

See Also:
Constant Field Values

PERSISTENCE_DB_PASSWORD

public static final java.lang.String PERSISTENCE_DB_PASSWORD
Persistence database password

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


getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Overrides:
getProperty in class java.util.Properties
See Also:
Properties.getProperty(java.lang.String, java.lang.String)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable
Returns:

loadConfig

public void loadConfig()
Configures the properties