public abstract class AbstractCompleteCheckpointStore extends Object implements CompletedCheckpointStore
CompletedCheckpointStore, which holds the SharedStateRegistry and provides the registration of shared state.LOG| 构造器和说明 |
|---|
AbstractCompleteCheckpointStore(SharedStateRegistry sharedStateRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.public 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 在接口中 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–2023 The Apache Software Foundation. All rights reserved.