Class LocalChangelogRegistryImpl
- java.lang.Object
-
- org.apache.flink.runtime.state.changelog.LocalChangelogRegistryImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,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(ExecutorService ioExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
discardUpToCheckpoint(long upTo)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete and ChangelogKeyedStateBackend#notifyCheckpointSubsumed.void
register(StreamStateHandle handle, long checkpointID)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.
-
-
-
Constructor Detail
-
LocalChangelogRegistryImpl
public LocalChangelogRegistryImpl(ExecutorService ioExecutor)
-
-
Method Detail
-
register
public void register(StreamStateHandle handle, long checkpointID)
Description copied from interface:LocalChangelogRegistry
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.- Specified by:
register
in interfaceLocalChangelogRegistry
- Parameters:
handle
- handle to register.checkpointID
- latest used checkpointID.
-
discardUpToCheckpoint
public void discardUpToCheckpoint(long upTo)
Description copied from interface:LocalChangelogRegistry
Called 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:
discardUpToCheckpoint
in interfaceLocalChangelogRegistry
- Parameters:
upTo
- lowest CheckpointID which is still valid.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-