|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.reptor.Configuration
Configuration class to manage the ReplicaManager configuration file and configuration options.
Constructor Summary | |
Configuration(java.lang.String configResource,
java.lang.String VO)
Initialize the properties from the given resource |
Method Summary | |
void |
addTimingAppender(org.apache.log4j.Logger theLogger)
|
java.lang.String |
getConfigResource()
Return the configuration file this Configuration was created from |
java.lang.String |
getDefaultComputingElementHost()
Return the default CE host |
java.lang.String |
getDefaultStorageElementHost()
Return the default SE host |
java.lang.String |
getProperty(java.lang.String key)
Get the property identified by a certain key. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Get the property identified by a certain key, or if it's not available, the default value. |
java.lang.String |
getVO()
Return the VO name |
InfoService |
infoService()
Return the InfoService interface |
boolean |
isVerbose()
Return whether the verbosity flag is set |
void |
makeTimingAppender(java.lang.String fileName)
|
static java.util.Properties |
readConfig(java.lang.String configResource)
Read the configuration resource. |
void |
setVerbose()
Set the verbosity flag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Configuration(java.lang.String configResource, java.lang.String VO) throws org.edg.data.util.InvalidConfigurationException, InfoServiceException
configResource
- The resource on the classpath to load the
properties from.
org.edg.data.util.InvalidConfigurationException
- if the file cannot be
accessed for some reason.
InfoServiceException
Method Detail |
public void setVerbose()
public boolean isVerbose()
public java.lang.String getConfigResource()
public InfoService infoService()
public java.lang.String getVO()
public java.lang.String getProperty(java.lang.String key)
key
- The string identifying the property.
null
if the
property does not exist.public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- The string identifying the property.defaultValue
- The string identifying the default for this
property.
public java.lang.String getDefaultComputingElementHost() throws InfoServiceException, ConfigurationException
InfoServiceException
ConfigurationException
public java.lang.String getDefaultStorageElementHost() throws InfoServiceException, ConfigurationException
InfoServiceException
ConfigurationException
public static java.util.Properties readConfig(java.lang.String configResource) throws org.edg.data.util.InvalidConfigurationException
configResource
- the file name.
org.edg.data.util.InvalidConfigurationException
- if the configuration
resource was not found on the classpath or can't be read.public void makeTimingAppender(java.lang.String fileName)
public void addTimingAppender(org.apache.log4j.Logger theLogger)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |