Class PendingCheckpointStats
java.lang.Object
org.apache.flink.runtime.checkpoint.AbstractCheckpointStats
org.apache.flink.runtime.checkpoint.PendingCheckpointStats
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FailedCheckpointStats
Statistics for a pending checkpoint that is still in progress.
This is the starting point for all checkpoint tracking. The life cycle of instances of this
class is tightly coupled to a PendingCheckpoint instance, which forwards statistics about
acknowledged subtasks via reportSubtaskStats(JobVertexID, SubtaskStateStats).
Depending on whether the PendingCheckpoint is finalized successfully or aborted, we
replace ourselves with a CompletedCheckpointStats or FailedCheckpointStats and
notify the CheckpointStatsTracker.
The statistics gathered here are all live updated.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the checkpointed size during that checkpoint.Returns the latest acknowledged subtask stats ornullif none was acknowledged yet.intReturns the number of acknowledged subtasks.longlonglongReturns the total checkpoint state size over all subtasks.Returns the status of this checkpoint.booleantoString()Methods inherited from class org.apache.flink.runtime.checkpoint.AbstractCheckpointStats
getAllTaskStateStats, getCheckpointId, getEndToEndDuration, getLatestAckTimestamp, getNumberOfSubtasks, getProperties, getTaskStateStats, getTriggerTimestamp
-
Method Details
-
getStatus
Description copied from class:AbstractCheckpointStatsReturns the status of this checkpoint.- Specified by:
getStatusin classAbstractCheckpointStats- Returns:
- Status of this checkpoint
-
getNumberOfAcknowledgedSubtasks
public int getNumberOfAcknowledgedSubtasks()Description copied from class:AbstractCheckpointStatsReturns the number of acknowledged subtasks.- Specified by:
getNumberOfAcknowledgedSubtasksin classAbstractCheckpointStats- Returns:
- The number of acknowledged subtasks.
-
getStateSize
public long getStateSize()Description copied from class:AbstractCheckpointStatsReturns the total checkpoint state size over all subtasks.- Specified by:
getStateSizein classAbstractCheckpointStats- Returns:
- Total checkpoint state size over all subtasks.
-
getCheckpointedSize
public long getCheckpointedSize()Description copied from class:AbstractCheckpointStatsReturns the checkpointed size during that checkpoint.- Specified by:
getCheckpointedSizein classAbstractCheckpointStats- Returns:
- The checkpointed size during that checkpoint.
-
getProcessedData
public long getProcessedData()- Specified by:
getProcessedDatain classAbstractCheckpointStats- Returns:
- the total number of processed bytes during the checkpoint.
-
getPersistedData
public long getPersistedData()- Specified by:
getPersistedDatain classAbstractCheckpointStats- Returns:
- the total number of persisted bytes during the checkpoint.
-
isUnalignedCheckpoint
public boolean isUnalignedCheckpoint()- Specified by:
isUnalignedCheckpointin classAbstractCheckpointStats- Returns:
- whether the checkpoint is unaligned.
-
getLatestAcknowledgedSubtaskStats
Description copied from class:AbstractCheckpointStatsReturns the latest acknowledged subtask stats ornullif none was acknowledged yet.- Specified by:
getLatestAcknowledgedSubtaskStatsin classAbstractCheckpointStats- Returns:
- Latest acknowledged subtask stats or
null
-
toString
-