|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the basic interface that all ConfigWatchdogs must support.
ConfigWatchdogs "watch" a log4j configuration source, and when new, changed configuration data is available, the watchdog will initiate a reconfiguration of the log4j settings using the new configuration data.
All watchdogs can have a name and configurator class. The configurator class will be used when reconfiguring using the new data. All watchdogs can be started and stopped.
Several different ConfigWatchdog classes are available in the org.apache.log4j.config package, such as FileWatchdog (watches a configuration file), HttpWatchdog (watches a configuration file at a url location), and SocketWatchdog (watches a socket for incoming configuration data).
If these are not sufficient, developers are encouraged to implement specific versions of ConfigWatchdogs for their particular needs. This can be done by subclassing the WatchdogBase or URLWatchdogBase abstract classes, or to write their own class that implements the ConfigWatchdog interface. Please see the above mentioned classes for more information.
Method Summary | |
Class |
getConfiguratorClass()
Gets the configurator class used for reconfiguration. |
String |
getConfiguratorClassName()
Gets the configurator class name used for reconfiguration. |
LoggerRepository |
getLoggerRepository()
Get the logger repository this watchdog will reconfigure when new configuration data is detected. |
String |
getName()
Get the name of this watchdog. |
boolean |
isRunning()
Returns true if this watchdog is currently running. |
void |
setConfiguratorClass(Class clazz)
Sets the configurator class used for reconfiguration. |
void |
setConfiguratorClassName(String className)
Sets the configurator class name used for reconfiguration. |
void |
setLoggerRepository(LoggerRepository repository)
Set the logger repository this watchdog will reconfigure when new configuration data is detected. |
void |
setName(String name)
Set the name of this watchdog. |
void |
startWatching()
Starts this watchdog watching. |
void |
stopWatching()
Stops this watchdog. |
Method Detail |
public boolean isRunning()
public void setName(String name)
public String getName()
public void setConfiguratorClassName(String className)
public String getConfiguratorClassName()
public void setConfiguratorClass(Class clazz)
public Class getConfiguratorClass()
public void setLoggerRepository(LoggerRepository repository)
public LoggerRepository getLoggerRepository()
public void startWatching()
public void stopWatching()
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |