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:
  • Field Details

  • Method Details

    • 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