org.apache.log4j.helpers
public abstract class FileWatchdog extends Thread
Since: version 0.9.1
| Field Summary | |
|---|---|
| protected long | delay
The delay to observe between every check. |
| static long | DEFAULT_DELAY
The default delay between every file modification check, set to 60
seconds. |
| protected String | filename
The name of the file to observe for changes. |
| Constructor Summary | |
|---|---|
| protected | FileWatchdog(String filename) |
| Method Summary | |
|---|---|
| protected void | checkAndConfigure() |
| protected abstract void | doOnChange() |
| void | run() |
| void | setDelay(long delay)
Set the delay to observe between each check of the file changes. |