com.ibm.di.server
Class Monitor

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AssemblyLine, Switchboard, Trigger

public class Monitor
extends Thread

This class is the base class for all TDI classes which implement executable objects, like AssemblyLines and EventHandlers. The threadStarted(...) and threadStopped(...) methods are invoked at AssemblyLine/EventHandler start and stop. These two methods make sure that the Server API is notified of an AssemblyLine/EventHandler start/stop events, thus supporting the Server API event model.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Monitor()
           
 
Method Summary
static void addActionListener(ActionListener l)
           
static void addThread(Integer uid, Thread thread)
           
static boolean allThreadsStopped()
           
 void fireListener(ActionEvent e)
           
static void removeActionListener(ActionListener l)
           
static void removeThread(Integer uid)
           
static Vector runningALs()
           
static Vector runningEHs()
           
 void setMonitorMessage(Object thread, String message)
           
protected static void threadStarted(Object thread, String text)
           
protected static void threadStopped(Object thread, String text, Exception e)
           
 
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, run, 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

Monitor

public Monitor()
Method Detail

addActionListener

public static void addActionListener(ActionListener l)

removeActionListener

public static void removeActionListener(ActionListener l)

fireListener

public void fireListener(ActionEvent e)

addThread

public static void addThread(Integer uid,
                             Thread thread)

removeThread

public static void removeThread(Integer uid)

threadStarted

protected static void threadStarted(Object thread,
                                    String text)

threadStopped

protected static void threadStopped(Object thread,
                                    String text,
                                    Exception e)

allThreadsStopped

public static boolean allThreadsStopped()

runningALs

public static Vector runningALs()

runningEHs

public static Vector runningEHs()

setMonitorMessage

public void setMonitorMessage(Object thread,
                              String message)