@Internal public class LocalChangelogRegistryImpl extends Object implements LocalChangelogRegistry
NO_OP| 构造器和说明 |
|---|
LocalChangelogRegistryImpl(Executor ioExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
discardUpToCheckpoint(long upTo)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete and
ChangelogKeyedStateBackend#notifyCheckpointSubsumed.
|
void |
prune(long checkpointID)
Called upon ChangelogKeyedStateBackend#notifyCheckpointAborted.
|
void |
register(StreamStateHandle handle,
long checkpointID)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.
|
public LocalChangelogRegistryImpl(Executor ioExecutor)
public void register(StreamStateHandle handle, long checkpointID)
LocalChangelogRegistryregister 在接口中 LocalChangelogRegistryhandle - handle to register.checkpointID - latest used checkpointID.public void discardUpToCheckpoint(long upTo)
LocalChangelogRegistryCompletedCheckpointStore.addCheckpointAndSubsumeOldestOne(org.apache.flink.runtime.checkpoint.CompletedCheckpoint, org.apache.flink.runtime.checkpoint.CheckpointsCleaner, java.lang.Runnable), local dtsl handles
are unregistered when the checkpoint completes, because only one checkpoint is kept for local
recovery.discardUpToCheckpoint 在接口中 LocalChangelogRegistryupTo - lowest CheckpointID which is still valid.public void prune(long checkpointID)
LocalChangelogRegistryprune 在接口中 LocalChangelogRegistrycheckpointID - to abortCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.