Class ThreadDumper
- java.lang.Object
-
- org.apache.felix.webconsole.internal.misc.ThreadDumper
-
public class ThreadDumper extends Object
This is a helper class for dumping thread stacks.
-
-
Constructor Summary
Constructors Constructor Description ThreadDumper()
Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printThread(PrintWriter pw, Thread thread, boolean withStackTrace)
Prints information for the given thread.void
printThreads(PrintWriter pw, boolean withStackTrace)
Prints all available thread groups, threads and a summary of threads availability.
-
-
-
Method Detail
-
printThreads
public final void printThreads(PrintWriter pw, boolean withStackTrace)
Prints all available thread groups, threads and a summary of threads availability. The thread groups and the threads will be sorted alphabetically regardless of the case.- Parameters:
pw
- the writer where to print the threads informationwithStackTrace
- to include or not the stack traces
-
printThread
public final void printThread(PrintWriter pw, Thread thread, boolean withStackTrace)
Prints information for the given thread.- Parameters:
pw
- the writer where to print the threads informationthread
- the thread for which to print the informationwithStackTrace
- to include or not the stack traces
-
-