org.ourgrid.common.config
Class MyGridConfiguration

java.lang.Object
  extended by org.ourgrid.common.config.Configuration
      extended by org.ourgrid.common.config.MyGridConfiguration

public class MyGridConfiguration
extends Configuration

Description: MyGrid configuration properties

Version:
1.0 Date14/09/2004

Field Summary
static java.lang.String DEFAULT_MAX_BL_FAILS
          The default value to the property PROP_MAX_BL_FAILS
static java.lang.String LOG_PROPERTIES_FILENAME
          MyGrid log properties file
static java.lang.String LOG_PROPERTIES_FILENAME_DESTINATION
          MyGrid log properties file destination (in .mygrid folder)
static java.lang.String PREFIX
          MyGrid property prefix
static java.lang.String PROP_CACHE_DDFILE
          Added by Hunter Hagewood 09/03/2005 The property key for the DataDiscovery cache
static java.lang.String PROP_DEFAULT_GDF
          The property key that sets the default GDF (Setting this property, the user avoid to do setGrid manually)
static java.lang.String PROP_GUI_NAME
           
static java.lang.String PROP_GUI_PORT
          Port used Mygrid GUI to publish its listeners
static java.lang.String PROP_HEURISTIC
          The property key for the Heuristic type
static java.lang.String PROP_JOBCOUNTERFILE
           
static java.lang.String PROP_MAX_BL_FAILS
          Max number of fails of an given machine executing a given job to enter in the black list.
static java.lang.String PROP_MAX_FAILS
          The property key for the Maximum Number of Failed Replicas to consider the Task as Failed
static java.lang.String PROP_MAX_REPLICAS
          The property key for the Maximum Number of Replicas
static java.lang.String PROP_PERSISTJOBID
           
static java.lang.String PROPERTIES_FILENAME
          MyGrid properties file
static java.lang.String ROOT_DIR
           
static java.lang.String SETGRID_COMMAND
           
 
Fields inherited from class org.ourgrid.common.config.Configuration
COREPEER, MGROOT, MYGRID, PEER, PROP_EXTERNAL_NAME, PROP_KEYSTORE_FILENAME, PROP_KEYSTORE_PASSWORD, PROP_LOG_PROPERTIES_FILE, PROP_LOGFILE, PROP_NAME, PROP_PORT, PROP_SECURE_PORT, PROP_SECURITY, PROP_STARTED_TIME, PROP_TRUSTSTORE_FILENAME, PROP_TRUSTSTORE_PASSWORD, QUERY_FREQ, singleInstance, USERAGENT, VERSION
 
Constructor Summary
MyGridConfiguration()
          Default constructor
 
Method Summary
protected static java.lang.String getConfDir()
          Returns the configuration directory.
protected  java.lang.String getPrefix()
          Returns the module specific prefix used to indentify it's own properties.
 java.lang.String getRootDir()
          Gets the module configuration rootdir.
 
Methods inherited from class org.ourgrid.common.config.Configuration
createInstance, getHostname, getInstance, getInstance, getLogPath, getLogPropertiesPath, getProperty, getXMLLogPath, isEnabled, isSecurityEnabled, isUsingDefaultProperties, loadPropertiesFromFile, reset, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETGRID_COMMAND

public static final java.lang.String SETGRID_COMMAND
See Also:
Constant Field Values

ROOT_DIR

public static final java.lang.String ROOT_DIR

PROPERTIES_FILENAME

public static final java.lang.String PROPERTIES_FILENAME
MyGrid properties file


PROP_MAX_FAILS

public static final java.lang.String PROP_MAX_FAILS
The property key for the Maximum Number of Failed Replicas to consider the Task as Failed

See Also:
Constant Field Values

PROP_HEURISTIC

public static final java.lang.String PROP_HEURISTIC
The property key for the Heuristic type

See Also:
Constant Field Values

PROP_MAX_REPLICAS

public static final java.lang.String PROP_MAX_REPLICAS
The property key for the Maximum Number of Replicas

See Also:
Constant Field Values

PROP_PERSISTJOBID

public static final java.lang.String PROP_PERSISTJOBID
See Also:
Constant Field Values

PROP_JOBCOUNTERFILE

public static final java.lang.String PROP_JOBCOUNTERFILE

PROP_DEFAULT_GDF

public static final java.lang.String PROP_DEFAULT_GDF
The property key that sets the default GDF (Setting this property, the user avoid to do setGrid manually)

See Also:
Constant Field Values

PROP_CACHE_DDFILE

public static final java.lang.String PROP_CACHE_DDFILE
Added by Hunter Hagewood 09/03/2005 The property key for the DataDiscovery cache

See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
MyGrid property prefix

See Also:
Constant Field Values

LOG_PROPERTIES_FILENAME

public static final java.lang.String LOG_PROPERTIES_FILENAME
MyGrid log properties file

See Also:
Constant Field Values

LOG_PROPERTIES_FILENAME_DESTINATION

public static final java.lang.String LOG_PROPERTIES_FILENAME_DESTINATION
MyGrid log properties file destination (in .mygrid folder)


PROP_MAX_BL_FAILS

public static final java.lang.String PROP_MAX_BL_FAILS
Max number of fails of an given machine executing a given job to enter in the black list.

See Also:
Constant Field Values

DEFAULT_MAX_BL_FAILS

public static final java.lang.String DEFAULT_MAX_BL_FAILS
The default value to the property PROP_MAX_BL_FAILS

See Also:
Constant Field Values

PROP_GUI_PORT

public static final java.lang.String PROP_GUI_PORT
Port used Mygrid GUI to publish its listeners

See Also:
Constant Field Values

PROP_GUI_NAME

public static final java.lang.String PROP_GUI_NAME
See Also:
Constant Field Values
Constructor Detail

MyGridConfiguration

public MyGridConfiguration()
Default constructor

Method Detail

getConfDir

protected static java.lang.String getConfDir()
Returns the configuration directory.

Returns:
The directory.

getPrefix

protected java.lang.String getPrefix()
Description copied from class: Configuration
Returns the module specific prefix used to indentify it's own properties. For example, the MyGrid properties prefix is "mg." , the OurGrid's one is "peer." .

Specified by:
getPrefix in class Configuration
Returns:
The module specific property prefix.

getRootDir

public java.lang.String getRootDir()
Description copied from class: Configuration
Gets the module configuration rootdir.

Specified by:
getRootDir in class Configuration
Returns:
The module configuration rootdir path.