public class FsCheckpointStorageLocation extends FsCheckpointStreamFactory implements CheckpointStorageLocation
FsCheckpointStreamFactory.FsCheckpointStateOutputStreamMAX_FILE_STATE_THRESHOLD| Constructor and Description |
|---|
FsCheckpointStorageLocation(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) |
| Modifier and Type | Method and Description |
|---|---|
CheckpointMetadataOutputStream |
createMetadataOutputStream()
Creates the output stream to persist the checkpoint metadata to.
|
void |
disposeOnFailure()
Disposes the checkpoint location in case the checkpoint has failed.
|
org.apache.flink.core.fs.Path |
getCheckpointDirectory() |
CheckpointStorageLocationReference |
getLocationReference()
Gets a reference to the storage location.
|
org.apache.flink.core.fs.Path |
getMetadataFilePath() |
org.apache.flink.core.fs.Path |
getSharedStateDirectory() |
org.apache.flink.core.fs.Path |
getTaskOwnedStateDirectory() |
String |
toString() |
canFastDuplicate, createCheckpointStateOutputStream, duplicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanFastDuplicate, createCheckpointStateOutputStream, duplicatepublic FsCheckpointStorageLocation(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)
public org.apache.flink.core.fs.Path getCheckpointDirectory()
public org.apache.flink.core.fs.Path getSharedStateDirectory()
public org.apache.flink.core.fs.Path getTaskOwnedStateDirectory()
public org.apache.flink.core.fs.Path getMetadataFilePath()
public CheckpointMetadataOutputStream createMetadataOutputStream() throws IOException
CheckpointStorageLocationcreateMetadataOutputStream in interface CheckpointStorageLocationIOException - Thrown, if the stream cannot be opened due to an I/O error.public void disposeOnFailure()
throws IOException
CheckpointStorageLocationdisposeOnFailure in interface CheckpointStorageLocationIOExceptionpublic CheckpointStorageLocationReference getLocationReference()
CheckpointStorageLocationIf there is no custom location information that needs to be communicated, this method can
simply return CheckpointStorageLocationReference.getDefault().
getLocationReference in interface CheckpointStorageLocationpublic String toString()
toString in class FsCheckpointStreamFactoryCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.