Class TaskStateStats
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskStateStats.TaskStateStatsSummarySummary of the subtask stats of a single task/operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCheckpointedSize()longgetEndToEndDuration(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.JobVertexIDgetJobVertexId()SubtaskStateStatsgetLatestAcknowledgedSubtaskStats()longgetLatestAckTimestamp()intgetNumberOfAcknowledgedSubtasks()intgetNumberOfSubtasks()longgetPersistedDataStats()longgetProcessedDataStats()longgetStateSize()SubtaskStateStats[]getSubtaskStats()Returns the stats for all subtasks.TaskStateStats.TaskStateStatsSummarygetSummaryStats()
-
-
-
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
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
public SubtaskStateStats[] 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
public TaskStateStats.TaskStateStatsSummary getSummaryStats()
- Returns:
- Summary of the subtask stats.
-
-