com.sun.star.util.logging
Class Watchdog

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.sun.star.util.logging.Watchdog

public class Watchdog
extends java.lang.Thread

A simple watchdog thread that monitors a file in certain intervals for changes


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Watchdog(java.lang.String sFilename)
          Configure the Watchdog with the file to be watched
 
Method Summary
 void run()
          Starts the thread
protected  void watch()
          Checks the file for changes
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

Watchdog

public Watchdog(java.lang.String sFilename)
Configure the Watchdog with the file to be watched
Parameters:
sFilename - file to be watched
Method Detail

run

public void run()
Starts the thread
Overrides:
run in class java.lang.Thread

watch

protected void watch()
Checks the file for changes