public abstract class AbstractCompleteCheckpointStore extends Object implements CompletedCheckpointStore
CompletedCheckpointStore, which holds the SharedStateRegistry and provides the registration of shared state.LOG| Constructor and Description |
|---|
AbstractCompleteCheckpointStore(SharedStateRegistry sharedStateRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected static Optional<Long> |
findLowest(Deque<CompletedCheckpoint> unSubsumedCheckpoints) |
SharedStateRegistry |
getSharedStateRegistry()
Returns the
SharedStateRegistry used to register the shared state. |
void |
shutdown(org.apache.flink.api.common.JobStatus jobStatus,
CheckpointsCleaner checkpointsCleaner)
Shuts down the store.
|
protected void |
unregisterUnusedState(Deque<CompletedCheckpoint> unSubsumedCheckpoints)
Unregister shared states that are no longer in use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCheckpointAndSubsumeOldestOne, getAllCheckpoints, getLatestCheckpoint, getLatestCheckpointId, getMaxNumberOfRetainedCheckpoints, getNumberOfRetainedCheckpoints, requiresExternalizedCheckpointspublic AbstractCompleteCheckpointStore(SharedStateRegistry sharedStateRegistry)
public SharedStateRegistry getSharedStateRegistry()
CompletedCheckpointStoreSharedStateRegistry used to register the shared state.getSharedStateRegistry in interface CompletedCheckpointStorepublic void shutdown(org.apache.flink.api.common.JobStatus jobStatus,
CheckpointsCleaner checkpointsCleaner)
throws Exception
CompletedCheckpointStoreThe job status is forwarded and used to decide whether state should actually be discarded
or kept. SharedStateRegistry.unregisterUnusedState(long) and CheckpointsCleaner.cleanSubsumedCheckpoints(long, java.util.Set<java.lang.Long>, java.lang.Runnable, java.util.concurrent.Executor) should be called here to subsume unused state.
shutdown in interface CompletedCheckpointStorejobStatus - Job state on shut downcheckpointsCleaner - that will cleanup completed checkpoints if neededExceptionprotected void unregisterUnusedState(Deque<CompletedCheckpoint> unSubsumedCheckpoints)
protected static Optional<Long> findLowest(Deque<CompletedCheckpoint> unSubsumedCheckpoints)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.