Class Threads


  • final class Threads
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.EnumMap<java.lang.Thread.State,​java.lang.String> lockInfoStrings  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Threads()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void append​(java.lang.StringBuilder b, java.lang.management.ThreadInfo ti)
      Dump ThreadInfo information.
      private static int doEnumerate​(java.lang.ThreadGroup tg, java.lang.Thread[] threads, boolean recurse)  
      static java.util.HashSet<java.lang.Thread> getAllThreads()  
      static java.util.HashSet<java.lang.Thread> getThreads​(java.lang.ThreadGroup tg)  
      static java.lang.ThreadGroup getTopThreadGroup()  
      private static java.lang.String groupName​(java.lang.ThreadGroup threadGroup)  
      static java.lang.String threadName​(java.lang.Thread t)
      Collect thread information, JVM vendor insensitive.
      • Methods inherited from class java.lang.Object

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

      • lockInfoStrings

        private static final java.util.EnumMap<java.lang.Thread.State,​java.lang.String> lockInfoStrings
    • Constructor Detail

      • Threads

        private Threads()
    • Method Detail

      • threadName

        public static java.lang.String threadName​(java.lang.Thread t)
        Collect thread information, JVM vendor insensitive.
      • groupName

        private static java.lang.String groupName​(java.lang.ThreadGroup threadGroup)
      • append

        public static void append​(java.lang.StringBuilder b,
                                  java.lang.management.ThreadInfo ti)
        Dump ThreadInfo information.
      • getAllThreads

        public static java.util.HashSet<java.lang.Thread> getAllThreads()
      • getThreads

        public static java.util.HashSet<java.lang.Thread> getThreads​(java.lang.ThreadGroup tg)
      • doEnumerate

        private static int doEnumerate​(java.lang.ThreadGroup tg,
                                       java.lang.Thread[] threads,
                                       boolean recurse)
      • getTopThreadGroup

        public static java.lang.ThreadGroup getTopThreadGroup()