public class FsMergingCheckpointStorageAccess extends FsCheckpointStorageAccess
checkpointsDirectory, fileSizeThreshold, fileSystem, sharedStateDirectory, taskOwnedStateDirectory, writeBufferSizeCHECKPOINT_DIR_PREFIX, CHECKPOINT_SHARED_STATE_DIR, CHECKPOINT_TASK_OWNED_STATE_DIR, METADATA_FILE_NAME| Constructor and Description |
|---|
FsMergingCheckpointStorageAccess(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path checkpointBaseDirectory,
org.apache.flink.core.fs.Path defaultSavepointDirectory,
org.apache.flink.api.common.JobID jobId,
int fileSizeThreshold,
int writeBufferSize,
FileMergingSnapshotManager fileMergingSnapshotManager,
Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeBaseLocationsForCheckpoint()
Initializes the necessary prerequisites for storage locations of checkpoints.
|
CheckpointStreamFactory |
resolveCheckpointStorageLocation(long checkpointId,
CheckpointStorageLocationReference reference)
Resolves a storage location reference into a CheckpointStreamFactory.
|
createSavepointLocation, createTaskOwnedCheckpointStateToolset, createTaskOwnedStateStream, initializeLocationForCheckpoint, supportsHighlyAvailableStorage, toFileMergingStoragecreateCheckpointDirectory, decodePathFromReference, encodePathAsReference, getCheckpointDirectoryForJob, getDefaultSavepointDirectory, hasDefaultSavepointLocation, initializeLocationForSavepoint, resolveCheckpoint, resolveCheckpointPointerpublic FsMergingCheckpointStorageAccess(org.apache.flink.core.fs.FileSystem fs,
org.apache.flink.core.fs.Path checkpointBaseDirectory,
@Nullable
org.apache.flink.core.fs.Path defaultSavepointDirectory,
org.apache.flink.api.common.JobID jobId,
int fileSizeThreshold,
int writeBufferSize,
FileMergingSnapshotManager fileMergingSnapshotManager,
Environment environment)
throws IOException
IOExceptionpublic void initializeBaseLocationsForCheckpoint()
throws IOException
CheckpointStorageCoordinatorViewFor file-based checkpoint storage, this method would initialize essential base checkpoint
directories on checkpoint coordinator side and should be executed before calling CheckpointStorageCoordinatorView.initializeLocationForCheckpoint(long).
initializeBaseLocationsForCheckpoint in interface CheckpointStorageCoordinatorViewinitializeBaseLocationsForCheckpoint in class FsCheckpointStorageAccessIOException - Thrown, if these base storage locations cannot be initialized due to an
I/O exception.public CheckpointStreamFactory resolveCheckpointStorageLocation(long checkpointId, CheckpointStorageLocationReference reference) throws IOException
CheckpointStorageWorkerViewThe reference may be the default reference, in which case the method should return the default location, taking
existing configuration and checkpoint ID into account.
resolveCheckpointStorageLocation in interface CheckpointStorageWorkerViewresolveCheckpointStorageLocation in class FsCheckpointStorageAccesscheckpointId - The ID of the checkpoint that the location is initialized for.reference - The checkpoint location reference.IOException - Thrown, if the storage location cannot be initialized from the reference.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.