public class CheckpointStatsHistory extends Object implements Serializable
The size of the array is constrained by the maximum allowed size. The array starts empty an grows with each added checkpoint until it reaches the maximum number of elements. At this point, the elements wrap around and the least recently added entry is overwritten.
Access happens via checkpointsHistory over the statistics and a map that exposes the
checkpoint by their ID. Both of these are only guaranteed to reflect the latest state after a
call to createSnapshot()
.
Furthermore the history tracks the latest completed and latest failed checkpoint as well as the latest savepoint.
Modifier and Type | Method and Description |
---|---|
AbstractCheckpointStats |
getCheckpointById(long checkpointId) |
List<AbstractCheckpointStats> |
getCheckpoints() |
CompletedCheckpointStats |
getLatestCompletedCheckpoint() |
FailedCheckpointStats |
getLatestFailedCheckpoint() |
CompletedCheckpointStats |
getLatestSavepoint() |
public List<AbstractCheckpointStats> getCheckpoints()
public AbstractCheckpointStats getCheckpointById(long checkpointId)
@Nullable public CompletedCheckpointStats getLatestCompletedCheckpoint()
@Nullable public FailedCheckpointStats getLatestFailedCheckpoint()
@Nullable public CompletedCheckpointStats getLatestSavepoint()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.