Class ThreadDumpInfo
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.ThreadDumpInfo
-
- All Implemented Interfaces:
Serializable
,ResponseBody
public final class ThreadDumpInfo extends Object implements ResponseBody, Serializable
Class containing thread dump information.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThreadDumpInfo.ThreadInfo
Class containing information about a thread.
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_NAME_THREAD_INFOS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadDumpInfo
create(Collection<ThreadDumpInfo.ThreadInfo> threadInfos)
static ThreadDumpInfo
dumpAndCreate(int stacktraceMaxDepth)
Collection<ThreadDumpInfo.ThreadInfo>
getThreadInfos()
protected static String
stringifyThreadInfo(ThreadInfo threadInfo, int maxDepth)
Custom stringify format of JVM thread info to bypass the MAX_FRAMES = 8 limitation.
-
-
-
Field Detail
-
FIELD_NAME_THREAD_INFOS
public static final String FIELD_NAME_THREAD_INFOS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getThreadInfos
public Collection<ThreadDumpInfo.ThreadInfo> getThreadInfos()
-
create
public static ThreadDumpInfo create(Collection<ThreadDumpInfo.ThreadInfo> threadInfos)
-
dumpAndCreate
public static ThreadDumpInfo dumpAndCreate(int stacktraceMaxDepth)
-
stringifyThreadInfo
@VisibleForTesting protected static String stringifyThreadInfo(ThreadInfo threadInfo, int maxDepth)
Custom stringify format of JVM thread info to bypass the MAX_FRAMES = 8 limitation.This method is based on https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/java/lang/management/ThreadInfo.java#L597
-
-