Class LocalChangelogRegistryImpl
- java.lang.Object
-
- org.apache.flink.runtime.state.changelog.LocalChangelogRegistryImpl
-
- All Implemented Interfaces:
LocalChangelogRegistry
@Internal public class LocalChangelogRegistryImpl extends Object implements LocalChangelogRegistry
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.runtime.state.changelog.LocalChangelogRegistry
NO_OP
-
-
Constructor Summary
Constructors Constructor Description LocalChangelogRegistryImpl(Executor ioExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddiscardUpToCheckpoint(long upTo)Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete and ChangelogKeyedStateBackend#notifyCheckpointSubsumed.voidprune(long checkpointID)Called upon ChangelogKeyedStateBackend#notifyCheckpointAborted.voidregister(StreamStateHandle handle, long checkpointID)Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.
-
-
-
Constructor Detail
-
LocalChangelogRegistryImpl
public LocalChangelogRegistryImpl(Executor ioExecutor)
-
-
Method Detail
-
register
public void register(StreamStateHandle handle, long checkpointID)
Description copied from interface:LocalChangelogRegistryCalled upon ChangelogKeyedStateBackend#notifyCheckpointComplete.- Specified by:
registerin interfaceLocalChangelogRegistry- Parameters:
handle- handle to register.checkpointID- latest used checkpointID.
-
discardUpToCheckpoint
public void discardUpToCheckpoint(long upTo)
Description copied from interface:LocalChangelogRegistryCalled upon ChangelogKeyedStateBackend#notifyCheckpointComplete and ChangelogKeyedStateBackend#notifyCheckpointSubsumed. Remote dstl handles are unregistered whenCompletedCheckpointStore.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.- Specified by:
discardUpToCheckpointin interfaceLocalChangelogRegistry- Parameters:
upTo- lowest CheckpointID which is still valid.
-
prune
public void prune(long checkpointID)
Description copied from interface:LocalChangelogRegistryCalled upon ChangelogKeyedStateBackend#notifyCheckpointAborted.- Specified by:
prunein interfaceLocalChangelogRegistry- Parameters:
checkpointID- to abort
-
-