Class ThreadDump


  • public class ThreadDump
    extends java.lang.Object
    A convenience class for getting a thread dump.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.management.ThreadMXBean threadMXBean  
      private static java.nio.charset.Charset UTF_8  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadDump​(java.lang.management.ThreadMXBean threadMXBean)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dump​(java.io.OutputStream out)
      Dumps all of the threads' current information to an output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UTF_8

        private static final java.nio.charset.Charset UTF_8
      • threadMXBean

        private final java.lang.management.ThreadMXBean threadMXBean
    • Constructor Detail

      • ThreadDump

        public ThreadDump​(java.lang.management.ThreadMXBean threadMXBean)
    • Method Detail

      • dump

        public void dump​(java.io.OutputStream out)
        Dumps all of the threads' current information to an output stream.
        Parameters:
        out - an output stream