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 privateThreads()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappend(java.lang.StringBuilder b, java.lang.management.ThreadInfo ti)DumpThreadInfoinformation.private static intdoEnumerate(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.ThreadGroupgetTopThreadGroup()private static java.lang.StringgroupName(java.lang.ThreadGroup threadGroup)static java.lang.StringthreadName(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)DumpThreadInfoinformation.
-
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()
-
-