Class CompletedCheckpointStats
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.AbstractCheckpointStats
-
- org.apache.flink.runtime.checkpoint.CompletedCheckpointStats
-
- All Implemented Interfaces:
Serializable
public class CompletedCheckpointStats extends AbstractCheckpointStats
Statistics for a successfully completed checkpoint.The reported statistics are immutable except for the discarded flag, which is updated via the
DiscardCallbackand theCompletedCheckpointafter an instance of this class has been created.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCheckpointedSize()Returns the checkpointed size during that checkpoint.StringgetExternalPath()Returns the external pointer of this checkpoint.SubtaskStateStatsgetLatestAcknowledgedSubtaskStats()Returns the latest acknowledged subtask stats ornullif none was acknowledged yet.intgetNumberOfAcknowledgedSubtasks()Returns the number of acknowledged subtasks.longgetPersistedData()longgetProcessedData()longgetStateSize()Returns the total checkpoint state size over all subtasks.CheckpointStatsStatusgetStatus()Returns the status of this checkpoint.booleanisDiscarded()Returns whether the checkpoint has been discarded.booleanisUnalignedCheckpoint()StringtoString()-
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: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
@Nullable public SubtaskStateStats 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
-
getExternalPath
public String getExternalPath()
Returns the external pointer of this checkpoint.
-
isDiscarded
public boolean isDiscarded()
Returns whether the checkpoint has been discarded.- Returns:
trueif the checkpoint has been discarded,falseotherwise.
-
-