org.hydrateframework.gen.schema
Class FileWatcher

java.lang.Object
  extended by java.lang.Thread
      extended by org.hydrateframework.gen.schema.FileWatcher
All Implemented Interfaces:
java.lang.Runnable

public class FileWatcher
extends java.lang.Thread


Nested Class Summary
static interface FileWatcher.FileChanged
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileWatcher(FileWatcher.FileChanged listener)
           
 
Method Summary
 void addFile(java.io.File file, Family family)
           
 void check()
           
static void checkNow()
           
 void run()
           
static void startWatching(FileWatcher.FileChanged listener)
           
 void stopWatching(java.util.List<Family> families)
           
 void terminate()
           
static void terminateNow()
           
static void watchFile(java.io.File file, Family family)
           
 
Methods inherited from class 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileWatcher

public FileWatcher(FileWatcher.FileChanged listener)
Method Detail

startWatching

public static void startWatching(FileWatcher.FileChanged listener)

watchFile

public static void watchFile(java.io.File file,
                             Family family)

checkNow

public static void checkNow()

terminateNow

public static void terminateNow()

addFile

public void addFile(java.io.File file,
                    Family family)

stopWatching

public void stopWatching(java.util.List<Family> families)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

check

public void check()

terminate

public void terminate()


Copyright © 2000 The Hydrate Project. All Rights Reserved.