Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » helpers » [javadoc | source]
org.apache.log4j.helpers
abstract public class: FileWatchdog [javadoc | source]
java.lang.Object
   java.lang.Thread
      org.apache.log4j.helpers.FileWatchdog

All Implemented Interfaces:
    Runnable

Direct Known Subclasses:
    PropertyWatchdog, XMLWatchdog

Check every now and then that a certain file has not changed. If it has, then call the #doOnChange method.
Field Summary
public static final  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. 
protected  long delay    The delay to observe between every check. By default set #DEFAULT_DELAY
 File file     
 long lastModif     
 boolean warnedAlready     
 boolean interrupted     
Fields inherited from java.lang.Thread:
MIN_PRIORITY,  NORM_PRIORITY,  MAX_PRIORITY
Constructor:
 protected FileWatchdog(String filename) 
Method from org.apache.log4j.helpers.FileWatchdog Summary:
checkAndConfigure,   doOnChange,   run,   setDelay
Methods from java.lang.Thread:
activeCount,   checkAccess,   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,   run,   setContextClassLoader,   setDaemon,   setDefaultUncaughtExceptionHandler,   setName,   setPriority,   setUncaughtExceptionHandler,   sleep,   sleep,   start,   stop,   stop,   suspend,   toString,   yield
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.helpers.FileWatchdog Detail:
 protected  void checkAndConfigure() 
 abstract protected  void doOnChange()
 public  void run() 
 public  void setDelay(long delay) 
    Set the delay to observe between each check of the file changes.