xmlBlaster 2.2.0 client 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
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
 
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

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 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.