Package com.illumon.util.thread
Class ThreadDump
java.lang.Object
com.illumon.util.thread.ThreadDump
public class ThreadDump extends Object
A simple method for generating a Thread dump for this JVM; it doesn't do all the stuff that the kill -3 does; but
you can easily run it from inside the JVM without having to send yourself a signal.
-
Constructor Summary
Constructors Constructor Description ThreadDump()
-
Method Summary
Modifier and Type Method Description static String
threadDump()
Generate a thread dump as a String.static void
threadDump(com.fishlib.io.logger.Logger logger)
Write a thread dump to the provided logger.static void
threadDump(PrintStream out)
Write a thread dump to the given PrintStream.
-
Constructor Details
-
ThreadDump
public ThreadDump()
-
-
Method Details
-
threadDump
Write a thread dump to the given PrintStream.- Parameters:
out
- the output stream to write the thread dump of the current process to
-
threadDump
public static void threadDump(com.fishlib.io.logger.Logger logger)Write a thread dump to the provided logger.- Parameters:
logger
- the logger to write the thread dump of the current process to
-
threadDump
Generate a thread dump as a String.- Returns:
- a String containing a thread dump of the curent process.
-