public class FsMergingCheckpointStorageLocation extends FsCheckpointStorageLocation
FsCheckpointStreamFactory.FsCheckpointStateOutputStreamMAX_FILE_STATE_THRESHOLD| Constructor and Description |
|---|
FsMergingCheckpointStorageLocation(FileMergingSnapshotManager.SubtaskKey subtaskKey,
org.apache.flink.core.fs.FileSystem fileSystem,
org.apache.flink.core.fs.Path checkpointDir,
org.apache.flink.core.fs.Path sharedStateDir,
org.apache.flink.core.fs.Path taskOwnedStateDir,
CheckpointStorageLocationReference reference,
int fileStateSizeThreshold,
int writeBufferSize,
FileMergingSnapshotManager fileMergingSnapshotManager,
long checkpointId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFastDuplicate(StreamStateHandle stateHandle,
CheckpointedStateScope scope)
Tells if we can duplicate the given
StreamStateHandle into the path corresponding to
the given CheckpointedStateScope. |
FileMergingCheckpointStateOutputStream |
createCheckpointStateOutputStream(CheckpointedStateScope scope)
Creates an new
CheckpointStateOutputStream. |
List<StreamStateHandle> |
duplicate(List<StreamStateHandle> stateHandles,
CheckpointedStateScope scope)
Duplicates
StreamStateHandle into the path corresponding to * the given CheckpointedStateScope. |
CheckpointStreamFactory |
toNonFileMerging() |
createMetadataOutputStream, disposeOnFailure, getCheckpointDirectory, getLocationReference, getMetadataFilePath, getSharedStateDirectory, getTaskOwnedStateDirectory, toStringpublic FsMergingCheckpointStorageLocation(FileMergingSnapshotManager.SubtaskKey subtaskKey, org.apache.flink.core.fs.FileSystem fileSystem, org.apache.flink.core.fs.Path checkpointDir, org.apache.flink.core.fs.Path sharedStateDir, org.apache.flink.core.fs.Path taskOwnedStateDir, CheckpointStorageLocationReference reference, int fileStateSizeThreshold, int writeBufferSize, FileMergingSnapshotManager fileMergingSnapshotManager, long checkpointId)
public CheckpointStreamFactory toNonFileMerging()
public boolean canFastDuplicate(StreamStateHandle stateHandle, CheckpointedStateScope scope) throws IOException
CheckpointStreamFactoryStreamStateHandle into the path corresponding to
the given CheckpointedStateScope.
This should be a rather cheap operation, preferably not involving any remote accesses.
canFastDuplicate in interface CheckpointStreamFactorycanFastDuplicate in class FsCheckpointStreamFactorystateHandle - The handle to duplicatescope - Scope determining the location to duplicate intoIOExceptionpublic List<StreamStateHandle> duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) throws IOException
CheckpointStreamFactoryStreamStateHandle into the path corresponding to * the given CheckpointedStateScope.
You should first check if you can duplicate with CheckpointStreamFactory.canFastDuplicate(StreamStateHandle, CheckpointedStateScope).
duplicate in interface CheckpointStreamFactoryduplicate in class FsCheckpointStreamFactorystateHandles - The handles to duplicatescope - Scope determining the location to duplicate intoIOExceptionpublic FileMergingCheckpointStateOutputStream createCheckpointStateOutputStream(CheckpointedStateScope scope) throws IOException
CheckpointStreamFactoryCheckpointStateOutputStream. When the stream is closed, it returns a
state handle that can retrieve the state back.createCheckpointStateOutputStream in interface CheckpointStreamFactorycreateCheckpointStateOutputStream in class FsCheckpointStreamFactoryscope - The state's scope, whether it is exclusive or shared.IOException - Exceptions may occur while creating the stream and should be forwarded.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.