org.apache.log4j.helpers
Class FileWatchdog
java.lang.Object
|
+--java.lang.Thread
|
+--org.apache.log4j.helpers.FileWatchdog
- All Implemented Interfaces:
- Runnable
Deprecated. Use org.apache.log4j.watchdog.FileWatchdog instead.
- public abstract class FileWatchdog
- extends Thread
Check every now and then that a certain file has not changed. If it
has, then call the doOnChange()
method.
This class has been deprecated and is no longer used by either
PropertyConfigurator or DOMConfigurator.
- Since:
- version 0.9.1
- Author:
- Ceki Gülcü
Field Summary |
static long |
DEFAULT_DELAY
Deprecated. The default delay between every file modification check, set to 60
seconds. |
protected long |
delay
Deprecated. The delay to observe between every check. |
protected String |
filename
Deprecated. The name of the file to observe for changes. |
Method Summary |
protected void |
checkAndConfigure()
Deprecated. |
protected abstract void |
doOnChange()
Deprecated. |
void |
run()
Deprecated. |
void |
setDelay(long delay)
Deprecated. Set the delay to observe between each check of the file changes. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
DEFAULT_DELAY
public static final long DEFAULT_DELAY
- Deprecated.
- The default delay between every file modification check, set to 60
seconds.
filename
protected String filename
- Deprecated.
- The name of the file to observe for changes.
delay
protected long delay
- Deprecated.
- The delay to observe between every check. By default set
DEFAULT_DELAY
.
FileWatchdog
protected FileWatchdog(String filename)
- Deprecated.
setDelay
public void setDelay(long delay)
- Deprecated.
- Set the delay to observe between each check of the file changes.
doOnChange
protected abstract void doOnChange()
- Deprecated.
checkAndConfigure
protected void checkAndConfigure()
- Deprecated.
run
public void run()
- Deprecated.
- Overrides:
run
in class Thread
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.