@InterfaceAudience.Private public abstract class ThreadMonitoring extends Object
Constructor and Description |
---|
ThreadMonitoring() |
Modifier and Type | Method and Description |
---|---|
static void |
appendThreadInfo(StringBuilder sb,
ThreadInfo info,
String indent)
Print all of the thread's information and stack traces.
|
static String |
formatThreadInfo(ThreadInfo threadInfo,
String indent)
Format the given ThreadInfo object as a String.
|
static ThreadInfo |
getThreadInfo(Thread t) |
public static ThreadInfo getThreadInfo(Thread t)
public static String formatThreadInfo(ThreadInfo threadInfo, String indent)
indent
- a prefix for each line, used for nested indentationpublic static void appendThreadInfo(StringBuilder sb, ThreadInfo info, String indent)
sb
- info
- indent
- Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.