@InterfaceAudience.Private public abstract class ThreadMonitoring extends Object
| 构造器和说明 |
|---|
ThreadMonitoring() |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2019 The Apache Software Foundation. All rights reserved.