Package org.apache.flink.runtime.state
Class SnapshotStrategyRunner<T extends StateObject,SR extends SnapshotResources>
java.lang.Object
org.apache.flink.runtime.state.SnapshotStrategyRunner<T,SR>
- Type Parameters:
T- type of the snapshot result.
public final class SnapshotStrategyRunner<T extends StateObject,SR extends SnapshotResources>
extends Object
A class to execute a
SnapshotStrategy. It can execute a strategy either synchronously or
asynchronously. It takes care of common logging and resource cleaning.-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotStrategyRunner(String description, SnapshotStrategy<T, SR> snapshotStrategy, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, SnapshotExecutionType executionType) -
Method Summary
Modifier and TypeMethodDescriptionfinal RunnableFuture<SnapshotResult<T>>snapshot(long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions) toString()
-
Constructor Details
-
SnapshotStrategyRunner
public SnapshotStrategyRunner(@Nonnull String description, @Nonnull SnapshotStrategy<T, SR> snapshotStrategy, @Nonnull org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, @Nonnull SnapshotExecutionType executionType)
-
-
Method Details
-
snapshot
@Nonnull public final RunnableFuture<SnapshotResult<T>> snapshot(long checkpointId, long timestamp, @Nonnull CheckpointStreamFactory streamFactory, @Nonnull CheckpointOptions checkpointOptions) throws Exception - Throws:
Exception
-
toString
-