org.ourgrid.common.config
Class CorePeerConfiguration

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

public class CorePeerConfiguration
extends Configuration

Corepeer configuration properties.


Field Summary
static java.lang.String PREFIX
          Peer property prefix.
static java.lang.String PROP_UPDATE_DELAY
          Corepeer property of delay between peer tests.
static java.lang.String PROPERTIES_FILENAME
          Corepeer configuration file.
static java.lang.String ROOT_DIR
          Corepeer configuration rootdir.
static long UPDATE_DELAY
          Delay between peer tests.
 
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
CorePeerConfiguration()
          Default constructor
 
Method Summary
protected static java.lang.String getConfDir()
          Returns the configuration directory.
 java.lang.String getLogPath()
          This method provides the absolute path to the log file.
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, 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

ROOT_DIR

public static final java.lang.String ROOT_DIR
Corepeer configuration rootdir.


PROPERTIES_FILENAME

public static final java.lang.String PROPERTIES_FILENAME
Corepeer configuration file.


UPDATE_DELAY

public static long UPDATE_DELAY
Delay between peer tests.


PROP_UPDATE_DELAY

public static final java.lang.String PROP_UPDATE_DELAY
Corepeer property of delay between peer tests.

See Also:
Constant Field Values

PREFIX

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

See Also:
Constant Field Values
Constructor Detail

CorePeerConfiguration

public CorePeerConfiguration()
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.

getLogPath

public java.lang.String getLogPath()
Description copied from class: Configuration
This method provides the absolute path to the log file.

Overrides:
getLogPath in class Configuration
Returns:
The absolute path where the log file is located