Class FsCompletedCheckpointStorageLocation
- java.lang.Object
-
- org.apache.flink.runtime.state.filesystem.FsCompletedCheckpointStorageLocation
-
- All Implemented Interfaces:
Serializable,CompletedCheckpointStorageLocation
public class FsCompletedCheckpointStorageLocation extends Object implements CompletedCheckpointStorageLocation
ACompletedCheckpointStorageLocationthat resides on a file system. This location is internally represented through the checkpoint directory plus the metadata file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FsCompletedCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisposeStorageLocation()Disposes the storage location.org.apache.flink.core.fs.PathgetExclusiveCheckpointDir()StringgetExternalPointer()Gets the external pointer to the checkpoint.FileStateHandlegetMetadataHandle()Gets the state handle to the checkpoint's metadata.
-
-
-
Constructor Detail
-
FsCompletedCheckpointStorageLocation
public FsCompletedCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer)
-
-
Method Detail
-
getExternalPointer
public String getExternalPointer()
Description copied from interface:CompletedCheckpointStorageLocationGets the external pointer to the checkpoint. The pointer can be used to resume a program from the savepoint or checkpoint, and is typically passed as a command line argument, an HTTP request parameter, or stored in a system like ZooKeeper.- Specified by:
getExternalPointerin interfaceCompletedCheckpointStorageLocation
-
getExclusiveCheckpointDir
public org.apache.flink.core.fs.Path getExclusiveCheckpointDir()
-
getMetadataHandle
public FileStateHandle getMetadataHandle()
Description copied from interface:CompletedCheckpointStorageLocationGets the state handle to the checkpoint's metadata.- Specified by:
getMetadataHandlein interfaceCompletedCheckpointStorageLocation
-
disposeStorageLocation
public void disposeStorageLocation() throws IOExceptionDescription copied from interface:CompletedCheckpointStorageLocationDisposes the storage location. This method should be called after all state objects have been released. It typically disposes the base structure of the checkpoint storage, like the checkpoint directory.- Specified by:
disposeStorageLocationin interfaceCompletedCheckpointStorageLocation- Throws:
IOException
-
-