com.retrogui.messageserver.common
Class ThreadDiagnostics

java.lang.Object
  extended bycom.retrogui.messageserver.common.ThreadDiagnostics

public class ThreadDiagnostics
extends java.lang.Object

thread diagnostics


Constructor Summary
ThreadDiagnostics()
           
 
Method Summary
static void dumpStack()
          dump stack (to console) of current thread
 java.util.ArrayList getAllThreads()
          return an ArrayList of currently running threads
protected  java.util.ArrayList getThreadList()
          DOCUMENT ME!
static java.lang.ThreadGroup getTopLevelThreadGroup()
          from the current thread get the topmost threadgroup of the application.
static void main(java.lang.String[] args)
          main - for testing
protected  void setThreadList(java.util.ArrayList threadList)
          DOCUMENT ME!
 void visit(java.lang.ThreadGroup group, int level)
          visitor method that visits all threadgroups and threads and accumulates information into data members
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadDiagnostics

public ThreadDiagnostics()
Method Detail

getTopLevelThreadGroup

public static java.lang.ThreadGroup getTopLevelThreadGroup()
from the current thread get the topmost threadgroup of the application. operates by walking upward through the threadgroups until the top is reached

Returns:
the top threadgroup
See Also:

dumpStack

public static void dumpStack()
dump stack (to console) of current thread

See Also:

getAllThreads

public java.util.ArrayList getAllThreads()
return an ArrayList of currently running threads

Returns:
an ArrayList of threads
See Also:

visit

public void visit(java.lang.ThreadGroup group,
                  int level)
visitor method that visits all threadgroups and threads and accumulates information into data members

Parameters:
group -
level -
See Also:

main

public static void main(java.lang.String[] args)
main - for testing

Parameters:
args -
See Also:

setThreadList

protected void setThreadList(java.util.ArrayList threadList)
DOCUMENT ME!

Parameters:
threadList -

getThreadList

protected java.util.ArrayList getThreadList()
DOCUMENT ME!

Returns: