|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
getStorageHost(java.lang.String seHost)
|
java.lang.String |
getVO()
Return the VO name |
InfoService |
infoService()
Return the InfoService interface |
boolean |
isSecure()
Return whether the security flag is set |
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 |
setSecure()
Set the insecure flag |
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 void setSecure()
public boolean isVerbose()
public boolean isSecure()
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()
public java.lang.String getDefaultStorageElementHost()
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)
public java.lang.String getStorageHost(java.lang.String seHost)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |