|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.config.Configuration
public abstract class Configuration
Description: This class provides access to the ourgrid's configuration model Each module that needs specific configuration properties should extend this class and sets its own properties.
Field Summary | |
---|---|
static java.lang.String |
COREPEER
|
static java.lang.String |
MGROOT
|
static java.lang.String |
MYGRID
|
static java.lang.String |
PEER
|
static java.lang.String |
PROP_EXTERNAL_NAME
|
static java.lang.String |
PROP_KEYSTORE_FILENAME
|
static java.lang.String |
PROP_KEYSTORE_PASSWORD
|
static java.lang.String |
PROP_LOG_PROPERTIES_FILE
|
static java.lang.String |
PROP_LOGFILE
|
static java.lang.String |
PROP_NAME
|
static java.lang.String |
PROP_PORT
|
static java.lang.String |
PROP_SECURE_PORT
|
static java.lang.String |
PROP_SECURITY
|
static java.lang.String |
PROP_STARTED_TIME
|
static java.lang.String |
PROP_TRUSTSTORE_FILENAME
|
static java.lang.String |
PROP_TRUSTSTORE_PASSWORD
|
static int |
QUERY_FREQ
|
protected static Configuration |
singleInstance
|
static java.lang.String |
USERAGENT
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
Configuration()
|
Method Summary | |
---|---|
static Configuration |
createInstance(java.lang.String configurationType)
Creates the unique configuration instance. |
java.lang.String |
getHostname()
|
static Configuration |
getInstance()
|
static Configuration |
getInstance(java.lang.String configurationType)
Creates, if not already created, the unique configuration instance. |
java.lang.String |
getLogPath()
This method provides the absolute path to the log file. |
java.lang.String |
getLogPropertiesPath()
|
protected abstract java.lang.String |
getPrefix()
Returns the module specific prefix used to indentify it's own properties. |
java.lang.String |
getProperty(java.lang.String key)
Gets the value of a given property. |
abstract java.lang.String |
getRootDir()
Gets the module configuration rootdir. |
java.lang.String |
getXMLLogPath()
This method provides the absolute path to the log file. |
boolean |
isEnabled(java.lang.String propertyKey)
Verify if the property passed is enabled |
boolean |
isSecurityEnabled()
|
boolean |
isUsingDefaultProperties()
|
protected void |
loadPropertiesFromFile(java.lang.String file)
This method reads properties from a file. |
static void |
reset()
Sets the singleton instance to null. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value of a given property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
protected static Configuration singleInstance
public static final java.lang.String MYGRID
public static final java.lang.String PEER
public static final java.lang.String COREPEER
public static final java.lang.String USERAGENT
public static final java.lang.String PROP_LOGFILE
public static final java.lang.String PROP_LOG_PROPERTIES_FILE
public static final java.lang.String PROP_NAME
public static final java.lang.String PROP_EXTERNAL_NAME
public static final java.lang.String PROP_PORT
public static final java.lang.String PROP_STARTED_TIME
public static final java.lang.String MGROOT
public static final java.lang.String PROP_SECURITY
public static final java.lang.String PROP_SECURE_PORT
public static final java.lang.String PROP_KEYSTORE_FILENAME
public static final java.lang.String PROP_KEYSTORE_PASSWORD
public static final java.lang.String PROP_TRUSTSTORE_FILENAME
public static final java.lang.String PROP_TRUSTSTORE_PASSWORD
public static final int QUERY_FREQ
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static final Configuration getInstance()
public static final Configuration getInstance(java.lang.String configurationType)
configurationType
- The configuration type to be created.
public static final void reset()
public final java.lang.String getProperty(java.lang.String key)
key
- The property name without the module specific prefix.
public boolean isSecurityEnabled() throws ConfigException
ConfigException
public final void setProperty(java.lang.String key, java.lang.String value)
key
- The property name without the module specific prefix.value
- The property value.public final boolean isEnabled(java.lang.String propertyKey)
propertyKey
- the key name of the property.
protected void loadPropertiesFromFile(java.lang.String file)
file
- The property file to be loaded.public boolean isUsingDefaultProperties()
public final java.lang.String getHostname()
public java.lang.String getLogPath()
public java.lang.String getLogPropertiesPath()
public final java.lang.String getXMLLogPath()
protected abstract java.lang.String getPrefix()
public abstract java.lang.String getRootDir()
public static Configuration createInstance(java.lang.String configurationType)
configurationType
- The configuration type to be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |