Class FsCheckpointStorageLocation
- java.lang.Object
-
- org.apache.flink.runtime.state.filesystem.FsCheckpointStreamFactory
-
- org.apache.flink.runtime.state.filesystem.FsCheckpointStorageLocation
-
- All Implemented Interfaces:
CheckpointStorageLocation,CheckpointStreamFactory
- Direct Known Subclasses:
FsMergingCheckpointStorageLocation
public class FsCheckpointStorageLocation extends FsCheckpointStreamFactory implements CheckpointStorageLocation
A storage location for checkpoints on a file system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.state.filesystem.FsCheckpointStreamFactory
FsCheckpointStreamFactory.FsCheckpointStateOutputStream
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.state.filesystem.FsCheckpointStreamFactory
MAX_FILE_STATE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointMetadataOutputStreamcreateMetadataOutputStream()Creates the output stream to persist the checkpoint metadata to.voiddisposeOnFailure()Disposes the checkpoint location in case the checkpoint has failed.org.apache.flink.core.fs.PathgetCheckpointDirectory()CheckpointStorageLocationReferencegetLocationReference()Gets a reference to the storage location.org.apache.flink.core.fs.PathgetMetadataFilePath()org.apache.flink.core.fs.PathgetSharedStateDirectory()org.apache.flink.core.fs.PathgetTaskOwnedStateDirectory()StringtoString()-
Methods inherited from class org.apache.flink.runtime.state.filesystem.FsCheckpointStreamFactory
canFastDuplicate, createCheckpointStateOutputStream, duplicate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.CheckpointStreamFactory
canFastDuplicate, couldReuseStateHandle, createCheckpointStateOutputStream, duplicate, reusePreviousStateHandle
-
-
-
-
Constructor Detail
-
FsCheckpointStorageLocation
public 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)
-
-
Method Detail
-
getCheckpointDirectory
public org.apache.flink.core.fs.Path getCheckpointDirectory()
-
getSharedStateDirectory
public org.apache.flink.core.fs.Path getSharedStateDirectory()
-
getTaskOwnedStateDirectory
public org.apache.flink.core.fs.Path getTaskOwnedStateDirectory()
-
getMetadataFilePath
public org.apache.flink.core.fs.Path getMetadataFilePath()
-
createMetadataOutputStream
public CheckpointMetadataOutputStream createMetadataOutputStream() throws IOException
Description copied from interface:CheckpointStorageLocationCreates the output stream to persist the checkpoint metadata to.- Specified by:
createMetadataOutputStreamin interfaceCheckpointStorageLocation- Returns:
- The output stream to persist the checkpoint metadata to.
- Throws:
IOException- Thrown, if the stream cannot be opened due to an I/O error.
-
disposeOnFailure
public void disposeOnFailure() throws IOExceptionDescription copied from interface:CheckpointStorageLocationDisposes the checkpoint location in case the checkpoint has failed. This method disposes all the data at that location, not just the data written by the particular node or process that calls this method.- Specified by:
disposeOnFailurein interfaceCheckpointStorageLocation- Throws:
IOException
-
getLocationReference
public CheckpointStorageLocationReference getLocationReference()
Description copied from interface:CheckpointStorageLocationGets a reference to the storage location. This reference is sent to the target storage location via checkpoint RPC messages and checkpoint barriers, in a format avoiding backend-specific classes.If there is no custom location information that needs to be communicated, this method can simply return
CheckpointStorageLocationReference.getDefault().- Specified by:
getLocationReferencein interfaceCheckpointStorageLocation
-
toString
public String toString()
- Overrides:
toStringin classFsCheckpointStreamFactory
-
-