public class ThreadDumper extends Object
Constructor and Description |
---|
ThreadDumper()
Base constructor.
|
Modifier and Type | Method and 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.
|
public final void printThreads(PrintWriter pw, boolean withStackTrace)
pw
- the writer where to print the threads informationwithStackTrace
- to include or not the stack tracespublic final void printThread(PrintWriter pw, Thread thread, boolean withStackTrace)
pw
- the writer where to print the threads informationthread
- the thread for which to print the informationwithStackTrace
- to include or not the stack tracesCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.