Class TaskStateStats
java.lang.Object
org.apache.flink.runtime.checkpoint.TaskStateStats
- All Implemented Interfaces:
Serializable
Statistics for a single task/operator that gathers all statistics of its subtasks and provides
summary statistics about all subtasks.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSummary of the subtask stats of a single task/operator. -
Method Summary
Modifier and TypeMethodDescriptionlonglonggetEndToEndDuration(long triggerTimestamp) Returns the duration of this checkpoint at the task/operator calculated as the time since triggering until the latest acknowledged subtask or-1if no subtask was acknowledged yet.longintintlonglonglongReturns the stats for all subtasks.
-
Method Details
-
getJobVertexId
- Returns:
- ID of the operator the statistics belong to.
-
getNumberOfSubtasks
public int getNumberOfSubtasks() -
getNumberOfAcknowledgedSubtasks
public int getNumberOfAcknowledgedSubtasks() -
getLatestAcknowledgedSubtaskStats
- Returns:
- The latest acknowledged subtask stats or
nullif none was acknowledged yet.
-
getLatestAckTimestamp
public long getLatestAckTimestamp()- Returns:
- Ack timestamp of the latest acknowledged subtask or
-1if 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-1if no subtask was acknowledged yet.- Returns:
- Duration of this checkpoint at the task/operator or
-1if no subtask was acknowledged yet.
-
getSubtaskStats
Returns the stats for all subtasks.Elements of the returned array are
nullif no stats are available yet for the respective subtask.Note: The returned array must not be modified.
- Returns:
- Array of subtask stats (elements are
nullif no stats available yet).
-
getSummaryStats
- Returns:
- Summary of the subtask stats.
-