xmlBlaster 2.2.0 API

org.xmlBlaster.util
Class ThreadLister

java.lang.Object
  extended by org.xmlBlaster.util.ThreadLister

public class ThreadLister
extends java.lang.Object

List all threads in this virtual machine.

Author:
David Flanagan, Marcel Ruff

Constructor Summary
ThreadLister()
           
 
Method Summary
static int countThreads()
          Count all active threads in this virtual machine.
static java.lang.String getAllStackTraces()
           
static java.lang.ThreadGroup getRootThreadGroup()
          Find the root thread group
private static void list_group(java.io.PrintStream out, java.lang.ThreadGroup g, java.lang.String indent)
          Display info about a thread group and its threads and groups
static java.lang.String listAllThreads()
          List all threads below the root thread group recursively.
static void listAllThreads(java.io.PrintStream out)
          List all threads below the root thread group recursively.
static void main(java.lang.String[] args)
          java org.xmlBlaster.util.ThreadLister
private static void print_thread_info(java.io.PrintStream out, java.lang.Thread t, java.lang.String indent)
          Display info about a thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLister

public ThreadLister()
Method Detail

print_thread_info

private static void print_thread_info(java.io.PrintStream out,
                                      java.lang.Thread t,
                                      java.lang.String indent)
Display info about a thread.


list_group

private static void list_group(java.io.PrintStream out,
                               java.lang.ThreadGroup g,
                               java.lang.String indent)
Display info about a thread group and its threads and groups


listAllThreads

public static void listAllThreads(java.io.PrintStream out)
List all threads below the root thread group recursively.


listAllThreads

public static java.lang.String listAllThreads()
List all threads below the root thread group recursively.


countThreads

public static int countThreads()
Count all active threads in this virtual machine.

Returns:
The number of threads.

getRootThreadGroup

public static java.lang.ThreadGroup getRootThreadGroup()
Find the root thread group

Returns:
The top level thread group

getAllStackTraces

public static java.lang.String getAllStackTraces()

main

public static void main(java.lang.String[] args)
java org.xmlBlaster.util.ThreadLister


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.