Class FsCheckpointStateToolset
java.lang.Object
org.apache.flink.runtime.state.filesystem.FsCheckpointStateToolset
- All Implemented Interfaces:
CheckpointStateToolset
An implementation of
CheckpointStateToolset that does file based duplicating with as
PathsCopyingFileSystem.-
Constructor Summary
ConstructorsConstructorDescriptionFsCheckpointStateToolset(org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.PathsCopyingFileSystem fs) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFastDuplicate(StreamStateHandle stateHandle) Tells if we can duplicate the givenStreamStateHandle.duplicate(List<StreamStateHandle> stateHandles) DuplicatesStreamStateHandlesinto the path embedded inside of the class.
-
Constructor Details
-
FsCheckpointStateToolset
public FsCheckpointStateToolset(org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.PathsCopyingFileSystem fs)
-
-
Method Details
-
canFastDuplicate
Description copied from interface:CheckpointStateToolsetTells if we can duplicate the givenStreamStateHandle.This should be a rather cheap operation, preferably not involving any remote accesses.
- Specified by:
canFastDuplicatein interfaceCheckpointStateToolset- Parameters:
stateHandle- The handle to duplicate- Returns:
- true, if we can perform the duplication
- Throws:
IOException
-
duplicate
Description copied from interface:CheckpointStateToolsetDuplicatesStreamStateHandlesinto the path embedded inside of the class.You should first check if you can duplicate with
CheckpointStateToolset.canFastDuplicate(StreamStateHandle).- Specified by:
duplicatein interfaceCheckpointStateToolset- Parameters:
stateHandles- The handles to duplicate- Returns:
- The duplicated handles
- Throws:
IOException
-