public abstract class FileWatchdog
extends java.lang.Thread
doOnChange()
method.限定符和类型 | 字段和说明 |
---|---|
static long |
DEFAULT_DELAY
The default delay between every file modification check, set to 60
seconds.
|
protected long |
delay
The delay to observe between every check.
|
protected java.lang.String |
filename
The name of the file to observe for changes.
|
限定符 | 构造器和说明 |
---|---|
protected |
FileWatchdog(java.lang.String filename) |
限定符和类型 | 方法和说明 |
---|---|
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.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final long DEFAULT_DELAY
protected java.lang.String filename
protected long delay
DEFAULT_DELAY
.