FileWatchdog Class Reference

Inheritance diagram for FileWatchdog:

Inheritance graph
[legend]
Collaboration diagram for FileWatchdog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setDelay (long delay)
void run ()
void start ()

Static Public Attributes

long DEFAULT_DELAY = 60000

Protected Attributes

String filename
long delay

Detailed Description

Check every now and then that a certain file has not changed. If it has, then call the #doOnChange method.


Member Function Documentation

void run  )  [virtual]
 

If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.

Reimplemented from Thread.

void setDelay long  delay  )  [inline]
 

Set the delay to observe between each check of the file changes.

void start  ) 
 

Causes this thread to begin execution; calls the run method of this thread.

Reimplemented from Thread.


Member Data Documentation

long DEFAULT_DELAY = 60000 [static]
 

The default delay between every file modification check, set to 60 seconds.

long delay [protected]
 

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

String filename [protected]
 

The name of the file to observe for changes.


The documentation for this class was generated from the following files:
  • filewatchdog.h
  • filewatchdog.cpp

Copyright © 1999-2004, Apache Software Foundation