@Internal public class LocalChangelogRegistryImpl extends Object implements LocalChangelogRegistry
NO_OP| Constructor and Description |
|---|
LocalChangelogRegistryImpl(Executor ioExecutor) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface 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 in interface LocalChangelogRegistryupTo - lowest CheckpointID which is still valid.public void prune(long checkpointID)
LocalChangelogRegistryprune in interface LocalChangelogRegistrycheckpointID - to abortCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.