Class DataTransferStrategy
- java.lang.Object
-
- org.apache.flink.state.forst.datatransfer.DataTransferStrategy
-
- Direct Known Subclasses:
CopyDataTransferStrategy
public abstract class DataTransferStrategy extends Object
Base class for data transfer strategy, called by ForSt to transfer data between Checkpoint and DB.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.core.fs.FileSystemdbFileSystemprotected static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataTransferStrategy(org.apache.flink.core.fs.FileSystem dbFileSystem)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidtransferFromCheckpoint(org.apache.flink.runtime.state.StreamStateHandle sourceHandle, org.apache.flink.core.fs.Path targetPath, org.apache.flink.core.fs.CloseableRegistry closeableRegistry)abstract org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPathtransferToCheckpoint(org.apache.flink.core.fs.Path dbFilePath, long maxTransferBytes, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.CheckpointedStateScope stateScope, org.apache.flink.core.fs.CloseableRegistry closeableRegistry, org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry)
-
-
-
Method Detail
-
transferToCheckpoint
public abstract org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath transferToCheckpoint(org.apache.flink.core.fs.Path dbFilePath, long maxTransferBytes, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.CheckpointedStateScope stateScope, org.apache.flink.core.fs.CloseableRegistry closeableRegistry, org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry) throws IOException- Throws:
IOException
-
transferFromCheckpoint
public abstract void transferFromCheckpoint(org.apache.flink.runtime.state.StreamStateHandle sourceHandle, org.apache.flink.core.fs.Path targetPath, org.apache.flink.core.fs.CloseableRegistry closeableRegistry) throws IOException- Throws:
IOException
-
-