|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.di.server.Monitor
public class Monitor
This class is the base class for all IBM Tivoli Directory Integrator classes which implement executable objects, like AssemblyLines. The threadStarted(...) and threadStopped(...) methods are invoked at AssemblyLine start and stop. These two methods make sure that the Server API is notified of an AssemblyLine 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()
Constructor. |
Method Summary | |
---|---|
static void |
addActionListener(ActionListener l)
Sets the actionListener of the Monitor object. |
static void |
addThread(Integer uid,
Thread thread)
Adds a thread to the monitor. |
static boolean |
allThreadsStopped()
Verifies if all threads have stopped. |
void |
fireListener(ActionEvent e)
Invokes the actionListener with the given event. |
static void |
removeActionListener(ActionListener l)
Removes the actionListener of the Monitor object. |
static void |
removeThread(Integer uid)
Removes a thread from the monitor. |
static Vector<AssemblyLine> |
runningALs()
Returns a collection of the running AssemblyLines. |
void |
setMonitorMessage(Object thread,
String message)
Sets a message for the monitor. |
protected static void |
threadStarted(Object thread,
String text)
Adds a given thread to the collection of running threads of the monitor. |
protected static void |
threadStopped(Object thread,
String text,
Exception e)
Removes a given thread to the collection of running threads of the monitor. |
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 |
---|
public Monitor()
Method Detail |
---|
public static void addActionListener(ActionListener l)
l
- the ActionListener to be addedpublic static void removeActionListener(ActionListener l)
l
- the ActionListener to be addedpublic void fireListener(ActionEvent e)
e
- the given ActionEvent objectpublic static void addThread(Integer uid, Thread thread)
uid
- the id of the threadthread
- the thread objectpublic static void removeThread(Integer uid)
uid
- the thread's idprotected static void threadStarted(Object thread, String text)
thread
- the thread that is startingtext
- a text messageprotected static void threadStopped(Object thread, String text, Exception e)
thread
- the thread to be stoppedtext
- a text messagee
- an exceptionpublic static boolean allThreadsStopped()
true
if all threads in the monitor have stopped,
otherwise false
public static Vector<AssemblyLine> runningALs()
public void setMonitorMessage(Object thread, String message)
thread
- a threadmessage
- the new message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |