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 aSnapshotStrategy
. It can execute a strategy either synchronously or asynchronously. It takes care of common logging and resource cleaning.
-
-
Constructor Summary
Constructors Constructor Description SnapshotStrategyRunner(String description, SnapshotStrategy<T,SR> snapshotStrategy, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, SnapshotExecutionType executionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunnableFuture<SnapshotResult<T>>
snapshot(long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions)
String
toString()
-
-
-
Constructor Detail
-
SnapshotStrategyRunner
public SnapshotStrategyRunner(@Nonnull String description, @Nonnull SnapshotStrategy<T,SR> snapshotStrategy, @Nonnull org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, @Nonnull SnapshotExecutionType executionType)
-
-
Method Detail
-
snapshot
@Nonnull public final RunnableFuture<SnapshotResult<T>> snapshot(long checkpointId, long timestamp, @Nonnull CheckpointStreamFactory streamFactory, @Nonnull CheckpointOptions checkpointOptions) throws Exception
- Throws:
Exception
-
-