java.lang.Objectjava.lang.Thread
org.apache.log4j.helpers.FileWatchdog
Check every now and then that a certain file has not changed. If it
has, then call the doOnChange()
method.
Field Summary | |
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 String |
filename
The name of the file to observe for changes. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
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. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long DEFAULT_DELAY
protected String filename
protected long delay
DEFAULT_DELAY
.
Constructor Detail |
protected FileWatchdog(String filename)
Method Detail |
public void setDelay(long delay)
protected abstract void doOnChange()
protected void checkAndConfigure()
public void run()
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.