|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.ce.commonj.configuration.xppm.ConfigurationManager
public class ConfigurationManager
The ConfigurationManager is the engine of the Common Configuration System for any all the Computing Element services. It loads the instantiates the registered configuration handlers and parses the XML configuration file.
Constructor Summary | |
---|---|
ConfigurationManager(java.lang.String xmlFilename)
Instantiates a new configuration manager. |
|
ConfigurationManager(java.lang.String xmlFilename,
long rate)
Instantiates a new configuration manager. |
|
ConfigurationManager(java.lang.String xmlFilename,
long rate,
ConfigurationListener[] listeners)
Instantiates a new configuration manager. |
Method Summary | |
---|---|
void |
addListener(ConfigurationListener lsnr)
Registers a new configuration listener. |
java.lang.Object[] |
getConfigurationElements(java.lang.Class<?> category)
Returns an array of configuration objects registered for a given category The category specify the class type of the returned object. |
void |
removeListener(ConfigurationListener lsnr)
Removes a registered configuration listener. |
void |
run()
Notifies the scheduled configuration events to the registered listeners If no events are scheduled the thread is blocked waiting for configuration changes. |
void |
shutdown()
Stops the notification thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationManager(java.lang.String xmlFilename) throws org.glite.ce.commonj.configuration.CommonConfigException
xmlFilename
- is the path of the XML configuration file
org.glite.ce.commonj.configuration.CommonConfigException
- if XML file is not correctpublic ConfigurationManager(java.lang.String xmlFilename, long rate) throws org.glite.ce.commonj.configuration.CommonConfigException
xmlFilename
- is the path of the XML configuration filerate
- is the interval in milliseconds between two consecutive
configuration lookups
org.glite.ce.commonj.configuration.CommonConfigException
- if XML file is not correctpublic ConfigurationManager(java.lang.String xmlFilename, long rate, ConfigurationListener[] listeners) throws org.glite.ce.commonj.configuration.CommonConfigException
xmlFilename
- is the path of the XML configuration filerate
- is the interval in milliseconds between two consecutive
configuration lookupslisteners
- is the array of listeners to be registered at the startup of
the notification manager
org.glite.ce.commonj.configuration.CommonConfigException
- if XML file is not correctMethod Detail |
---|
public java.lang.Object[] getConfigurationElements(java.lang.Class<?> category)
category
- is the class type for the registered object
public void run()
run
in interface java.lang.Runnable
public void shutdown()
public void addListener(ConfigurationListener lsnr)
lsnr
- is the listener to be registeredpublic void removeListener(ConfigurationListener lsnr)
lsnr
- is the listener to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |