public class PendingCheckpointStats extends AbstractCheckpointStats
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.
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCheckpointedSize()
Returns the checkpointed size during that checkpoint.
|
SubtaskStateStats |
getLatestAcknowledgedSubtaskStats()
Returns the latest acknowledged subtask stats or
null 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.
|
String |
toString() |
getAllTaskStateStats, getCheckpointId, getEndToEndDuration, getLatestAckTimestamp, getNumberOfSubtasks, getProperties, getTaskStateStats, getTriggerTimestamppublic CheckpointStatsStatus getStatus()
AbstractCheckpointStatsgetStatus 在类中 AbstractCheckpointStatspublic int getNumberOfAcknowledgedSubtasks()
AbstractCheckpointStatsgetNumberOfAcknowledgedSubtasks 在类中 AbstractCheckpointStatspublic long getStateSize()
AbstractCheckpointStatsgetStateSize 在类中 AbstractCheckpointStatspublic long getCheckpointedSize()
AbstractCheckpointStatsgetCheckpointedSize 在类中 AbstractCheckpointStatspublic long getProcessedData()
getProcessedData 在类中 AbstractCheckpointStatspublic long getPersistedData()
getPersistedData 在类中 AbstractCheckpointStatspublic SubtaskStateStats getLatestAcknowledgedSubtaskStats()
AbstractCheckpointStatsnull if none was acknowledged
yet.getLatestAcknowledgedSubtaskStats 在类中 AbstractCheckpointStatsnullCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.