Class Threads
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.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)
DumpThreadInfo
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.
-
-
-
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)
DumpThreadInfo
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()
-
-