org.ourgrid.common.config
Class PeerConfiguration
java.lang.Object
org.ourgrid.common.config.Configuration
org.ourgrid.common.config.PeerConfiguration
public class PeerConfiguration
- extends Configuration
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 |
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 |
SETGUMS_COMMAND
public static final java.lang.String SETGUMS_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
PROP_IDFILE
public static final java.lang.String PROP_IDFILE
- See Also:
- Constant Field Values
PROP_LABEL
public static final java.lang.String PROP_LABEL
- See Also:
- Constant Field Values
PROP_RANKINGFILE
public static final java.lang.String PROP_RANKINGFILE
- See Also:
- Constant Field Values
PROP_JOIN_COMMUNITY
public static final java.lang.String PROP_JOIN_COMMUNITY
- See Also:
- Constant Field Values
PROP_COREPEER_NAME
public static final java.lang.String PROP_COREPEER_NAME
- See Also:
- Constant Field Values
PROP_COREPEER_PORT
public static final java.lang.String PROP_COREPEER_PORT
- See Also:
- Constant Field Values
PROP_EMAIL
public static final java.lang.String PROP_EMAIL
- See Also:
- Constant Field Values
PROP_DESCRIPTION
public static final java.lang.String PROP_DESCRIPTION
- See Also:
- Constant Field Values
PROP_SAVING_INTERVAL
public static final java.lang.String PROP_SAVING_INTERVAL
- See Also:
- Constant Field Values
PROP_REDISTRIBUTING_INTERVAL
public static final java.lang.String PROP_REDISTRIBUTING_INTERVAL
- See Also:
- Constant Field Values
PROP_PING_INTERVAL
public static final java.lang.String PROP_PING_INTERVAL
- See Also:
- Constant Field Values
PROP_LATITUDE
public static final java.lang.String PROP_LATITUDE
- See Also:
- Constant Field Values
PROP_LONGITUDE
public static final java.lang.String PROP_LONGITUDE
- See Also:
- Constant Field Values
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
PROP_DEFAULT_SDF
public static final java.lang.String PROP_DEFAULT_SDF
- See Also:
- Constant Field Values
PeerConfiguration
public PeerConfiguration()
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