Class TaskStateStats

  • All Implemented Interfaces:
    Serializable

    public class TaskStateStats
    extends Object
    implements Serializable
    Statistics for a single task/operator that gathers all statistics of its subtasks and provides summary statistics about all subtasks.
    See Also:
    Serialized Form
    • Method Detail

      • getJobVertexId

        public JobVertexID getJobVertexId()
        Returns:
        ID of the operator the statistics belong to.
      • getNumberOfSubtasks

        public int getNumberOfSubtasks()
      • getNumberOfAcknowledgedSubtasks

        public int getNumberOfAcknowledgedSubtasks()
      • getLatestAcknowledgedSubtaskStats

        @Nullable
        public SubtaskStateStats getLatestAcknowledgedSubtaskStats()
        Returns:
        The latest acknowledged subtask stats or null if none was acknowledged yet.
      • getLatestAckTimestamp

        public long getLatestAckTimestamp()
        Returns:
        Ack timestamp of the latest acknowledged subtask or -1 if none was acknowledged yet..
      • getCheckpointedSize

        public long getCheckpointedSize()
        Returns:
        Total persisted size over all subtasks of this checkpoint.
      • getStateSize

        public long getStateSize()
        Returns:
        Total checkpoint state size over all subtasks.
      • getProcessedDataStats

        public long getProcessedDataStats()
      • getPersistedDataStats

        public long getPersistedDataStats()
      • getEndToEndDuration

        public long getEndToEndDuration​(long triggerTimestamp)
        Returns the duration of this checkpoint at the task/operator calculated as the time since triggering until the latest acknowledged subtask or -1 if no subtask was acknowledged yet.
        Returns:
        Duration of this checkpoint at the task/operator or -1 if no subtask was acknowledged yet.
      • getSubtaskStats

        public SubtaskStateStats[] getSubtaskStats()
        Returns the stats for all subtasks.

        Elements of the returned array are null if no stats are available yet for the respective subtask.

        Note: The returned array must not be modified.

        Returns:
        Array of subtask stats (elements are null if no stats available yet).