org.mmbase.util
Class FileWatcher.FileWatcherRunner

java.lang.Object
  extended by org.mmbase.util.FileWatcher.FileWatcherRunner
All Implemented Interfaces:
Runnable
Enclosing class:
FileWatcher

static class FileWatcher.FileWatcherRunner
extends Object
implements Runnable

The one thread to handle all FileWatchers. In earlier implementation every FileWatcher had it's own thread, but that is avoided now.


Constructor Summary
FileWatcher.FileWatcherRunner()
           
 
Method Summary
(package private)  void add(FileWatcher f)
           
 void cancel()
           
(package private)  void remove(FileWatcher f)
           
 void run()
          Main loop, will check every watched file every amount of time.
(package private)  int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWatcher.FileWatcherRunner

FileWatcher.FileWatcherRunner()
Method Detail

add

void add(FileWatcher f)

remove

void remove(FileWatcher f)

size

int size()

run

public void run()
Main loop, will check every watched file every amount of time. It will never stop, this thread is a daemon.

Specified by:
run in interface Runnable

cancel

public void cancel()


MMBase 2.0-SNAPSHOT - null