java.lang.Object |
↳ |
java.lang.Thread |
|
↳ |
org.apache.log4j.helpers.FileWatchdog |
Class Overview
Check every now and then that a certain file has not changed. If it
has, then call the doOnChange()
method.
Summary
Constants |
long |
DEFAULT_DELAY |
The default delay between every file modification check, set to 60
seconds. |
[Expand]
Inherited Constants |
From class
java.lang.Thread
int |
MAX_PRIORITY |
|
int |
MIN_PRIORITY |
|
int |
NORM_PRIORITY |
|
|
Fields |
protected
long |
delay |
The delay to observe between every check. |
protected
String |
filename |
The name of the file to observe for changes. |
Public Methods |
void
|
run()
|
void
|
setDelay(long delay)
Set the delay to observe between each check of the file changes.
|
[Expand]
Inherited Methods |
From class
java.lang.Thread
static
int
|
activeCount()
|
final
void
|
checkAccess()
|
Object
|
clone()
|
int
|
countStackFrames()
|
static
Thread
|
currentThread()
|
void
|
destroy()
|
static
void
|
dumpStack()
|
static
int
|
enumerate(Thread[] arg0)
|
static
Map<Thread, StackTraceElement[]>
|
getAllStackTraces()
|
ClassLoader
|
getContextClassLoader()
|
static
Thread.UncaughtExceptionHandler
|
getDefaultUncaughtExceptionHandler()
|
long
|
getId()
|
final
String
|
getName()
|
final
int
|
getPriority()
|
StackTraceElement[]
|
getStackTrace()
|
Thread.State
|
getState()
|
final
ThreadGroup
|
getThreadGroup()
|
Thread.UncaughtExceptionHandler
|
getUncaughtExceptionHandler()
|
static
boolean
|
holdsLock(Object arg0)
|
void
|
interrupt()
|
static
boolean
|
interrupted()
|
final
boolean
|
isAlive()
|
final
boolean
|
isDaemon()
|
boolean
|
isInterrupted()
|
final
void
|
join()
|
synchronized
final
void
|
join(long arg0, int arg1)
|
synchronized
final
void
|
join(long arg0)
|
final
void
|
resume()
|
void
|
run()
|
void
|
setContextClassLoader(ClassLoader arg0)
|
final
void
|
setDaemon(boolean arg0)
|
static
void
|
setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler arg0)
|
final
void
|
setName(String arg0)
|
final
void
|
setPriority(int arg0)
|
void
|
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler arg0)
|
static
void
|
sleep(long arg0, int arg1)
|
static
void
|
sleep(long arg0)
|
synchronized
void
|
start()
|
synchronized
final
void
|
stop(Throwable arg0)
|
final
void
|
stop()
|
final
void
|
suspend()
|
String
|
toString()
|
static
void
|
yield()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Runnable
|
Constants
public
static
final
long
DEFAULT_DELAY
The default delay between every file modification check, set to 60
seconds.
Constant Value:
60000
(0x000000000000ea60)
Fields
protected
long
delay
The delay to observe between every check. By default set DEFAULT_DELAY
.
protected
String
filename
The name of the file to observe for changes.
Protected Constructors
protected
FileWatchdog
(String filename)
Public Methods
public
void
setDelay
(long delay)
Set the delay to observe between each check of the file changes.
Protected Methods
protected
void
checkAndConfigure
()
protected
abstract
void
doOnChange
()