public class FsMergingCheckpointStorageAccess extends FsCheckpointStorageAccess implements Closeable
checkpointsDirectory, fileSizeThreshold, fileSystem, sharedStateDirectory, taskOwnedStateDirectory, writeBufferSizeCHECKPOINT_DIR_PREFIX, CHECKPOINT_SHARED_STATE_DIR, CHECKPOINT_TASK_OWNED_STATE_DIR, METADATA_FILE_NAME| 构造器和说明 |
|---|
FsMergingCheckpointStorageAccess(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) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
This will be registered to resource closer of
StreamTask. |
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.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 在接口中 CheckpointStorageCoordinatorViewinitializeBaseLocationsForCheckpoint 在类中 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 在接口中 CheckpointStorageWorkerViewresolveCheckpointStorageLocation 在类中 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.public void close()
StreamTask.close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.