laur.tools
Class MonitoredThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--laur.tools.AbortableThread
              |
              +--laur.tools.MonitoredThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
GA, GenSynDB

public abstract class MonitoredThread
extends AbortableThread

This abstract class allows a class that implements ThreadMonitor to be notified of the termination of this thread.


Field Summary
protected  laur.tools.ThreadMonitor monitor
          A reference to the monitor that should be notified of the termination of this thread.
 
Fields inherited from class laur.tools.AbortableThread
bAbort, isRunning
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MonitoredThread()
           
 
Method Summary
protected  void terminationHook()
          Notify the monitor of the thread termination.
 
Methods inherited from class laur.tools.AbortableThread
abort, checkAbort, execute, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

monitor

protected laur.tools.ThreadMonitor monitor
A reference to the monitor that should be notified of the termination of this thread.

Constructor Detail

MonitoredThread

public MonitoredThread()
Method Detail

terminationHook

protected void terminationHook()
Notify the monitor of the thread termination.

Overrides:
terminationHook in class AbortableThread