Class VertexThreadInfoStats

java.lang.Object
org.apache.flink.runtime.webmonitor.threadinfo.VertexThreadInfoStats
All Implemented Interfaces:
Statistics

public class VertexThreadInfoStats extends Object implements Statistics
Thread info statistics of single JobVertex or ExecutionVertex.
  • Constructor Details

    • VertexThreadInfoStats

      public VertexThreadInfoStats(int requestId, long startTime, long endTime, Map<ExecutionAttemptID,Collection<ThreadInfoSample>> samplesBySubtask)
      Creates a thread details sample.
      Parameters:
      requestId - ID of the sample.
      startTime - Timestamp, when the sample was triggered.
      endTime - Timestamp, when all thread info samples were collected.
      samplesBySubtask - Map of thread info samples by subtask (execution ID).
  • Method Details

    • getRequestId

      public int getRequestId()
      Returns the ID of the sample.
      Returns:
      ID of the sample
    • getStartTime

      public long getStartTime()
      Returns the timestamp, when the sample was triggered.
      Returns:
      Timestamp, when the sample was triggered
    • getEndTime

      public long getEndTime()
      Returns the timestamp, when all samples where collected.
      Specified by:
      getEndTime in interface Statistics
      Returns:
      Timestamp, when all samples where collected
    • getSamplesBySubtask

      public Map<ExecutionAttemptID,Collection<ThreadInfoSample>> getSamplesBySubtask()
      Returns the a map of thread info samples by subtask (execution ID).
      Returns:
      Map of thread info samples by task (execution ID)
    • getNumberOfSubtasks

      public int getNumberOfSubtasks()
    • toString

      public String toString()
      Overrides:
      toString in class Object