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 class
TaskStateStats.TaskStateStatsSummary
Summary of the subtask stats of a single task/operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCheckpointedSize()
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.JobVertexID
getJobVertexId()
SubtaskStateStats
getLatestAcknowledgedSubtaskStats()
long
getLatestAckTimestamp()
int
getNumberOfAcknowledgedSubtasks()
int
getNumberOfSubtasks()
long
getPersistedDataStats()
long
getProcessedDataStats()
long
getStateSize()
SubtaskStateStats[]
getSubtaskStats()
Returns the stats for all subtasks.TaskStateStats.TaskStateStatsSummary
getSummaryStats()
-
-
-
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).
-
getSummaryStats
public TaskStateStats.TaskStateStatsSummary getSummaryStats()
- Returns:
- Summary of the subtask stats.
-
-