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
public class PendingCheckpointStats extends AbstractCheckpointStats
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 viareportSubtaskStats(JobVertexID, SubtaskStateStats)
.Depending on whether the
PendingCheckpoint
is finalized successfully or aborted, we replace ourselves with aCompletedCheckpointStats
orFailedCheckpointStats
and notify theCheckpointStatsTracker
.The statistics gathered here are all live updated.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCheckpointedSize()
Returns the checkpointed size during that checkpoint.SubtaskStateStats
getLatestAcknowledgedSubtaskStats()
Returns the latest acknowledged subtask stats ornull
if none was acknowledged yet.int
getNumberOfAcknowledgedSubtasks()
Returns the number of acknowledged subtasks.long
getPersistedData()
long
getProcessedData()
long
getStateSize()
Returns the total checkpoint state size over all subtasks.CheckpointStatsStatus
getStatus()
Returns the status of this checkpoint.boolean
isUnalignedCheckpoint()
String
toString()
-
Methods inherited from class org.apache.flink.runtime.checkpoint.AbstractCheckpointStats
getAllTaskStateStats, getCheckpointId, getEndToEndDuration, getLatestAckTimestamp, getNumberOfSubtasks, getProperties, getTaskStateStats, getTriggerTimestamp
-
-
-
-
Method Detail
-
getStatus
public CheckpointStatsStatus getStatus()
Description copied from class:AbstractCheckpointStats
Returns the status of this checkpoint.- Specified by:
getStatus
in classAbstractCheckpointStats
- Returns:
- Status of this checkpoint
-
getNumberOfAcknowledgedSubtasks
public int getNumberOfAcknowledgedSubtasks()
Description copied from class:AbstractCheckpointStats
Returns the number of acknowledged subtasks.- Specified by:
getNumberOfAcknowledgedSubtasks
in classAbstractCheckpointStats
- Returns:
- The number of acknowledged subtasks.
-
getStateSize
public long getStateSize()
Description copied from class:AbstractCheckpointStats
Returns the total checkpoint state size over all subtasks.- Specified by:
getStateSize
in classAbstractCheckpointStats
- Returns:
- Total checkpoint state size over all subtasks.
-
getCheckpointedSize
public long getCheckpointedSize()
Description copied from class:AbstractCheckpointStats
Returns the checkpointed size during that checkpoint.- Specified by:
getCheckpointedSize
in classAbstractCheckpointStats
- Returns:
- The checkpointed size during that checkpoint.
-
getProcessedData
public long getProcessedData()
- Specified by:
getProcessedData
in classAbstractCheckpointStats
- Returns:
- the total number of processed bytes during the checkpoint.
-
getPersistedData
public long getPersistedData()
- Specified by:
getPersistedData
in classAbstractCheckpointStats
- Returns:
- the total number of persisted bytes during the checkpoint.
-
isUnalignedCheckpoint
public boolean isUnalignedCheckpoint()
- Specified by:
isUnalignedCheckpoint
in classAbstractCheckpointStats
- Returns:
- whether the checkpoint is unaligned.
-
getLatestAcknowledgedSubtaskStats
public SubtaskStateStats getLatestAcknowledgedSubtaskStats()
Description copied from class:AbstractCheckpointStats
Returns the latest acknowledged subtask stats ornull
if none was acknowledged yet.- Specified by:
getLatestAcknowledgedSubtaskStats
in classAbstractCheckpointStats
- Returns:
- Latest acknowledged subtask stats or
null
-
-