Log4j Version 1.2.14: Class FileWatchdog

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.helpers Class FileWatchdog

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.apache.log4j.helpers.FileWatchdog
All Implemented Interfaces:
Runnable

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.

Since:
version 0.9.1
Author:
Ceki Gülcü

static long
protected  long
protected  String
 
 
protected
 
protected  void
protected abstract  void
 void
 void
 
 
 

DEFAULT_DELAY

public static final long DEFAULT_DELAY
The default delay between every file modification check, set to 60 seconds.

filename

protected String filename
The name of the file to observe for changes.

delay

protected long delay
The delay to observe between every check. By default set DEFAULT_DELAY.

FileWatchdog

protected FileWatchdog(String filename)

setDelay

public void setDelay(long delay)
Set the delay to observe between each check of the file changes.

doOnChange

protected abstract void doOnChange()

checkAndConfigure

protected void checkAndConfigure()

run

public void run()
Overrides:
run in class Thread

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.