Class FsCompletedCheckpointStorageLocation
java.lang.Object
org.apache.flink.runtime.state.filesystem.FsCompletedCheckpointStorageLocation
- All Implemented Interfaces:
Serializable,CompletedCheckpointStorageLocation
public class FsCompletedCheckpointStorageLocation
extends Object
implements CompletedCheckpointStorageLocation
A
CompletedCheckpointStorageLocation that resides on a file system. This location is
internally represented through the checkpoint directory plus the metadata file.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFsCompletedCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidDisposes the storage location.org.apache.flink.core.fs.PathGets the external pointer to the checkpoint.Gets the state handle to the checkpoint's metadata.
-
Constructor Details
-
FsCompletedCheckpointStorageLocation
public FsCompletedCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fs, org.apache.flink.core.fs.Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer)
-
-
Method Details
-
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
Description copied from interface:CompletedCheckpointStorageLocationGets the state handle to the checkpoint's metadata.- Specified by:
getMetadataHandlein interfaceCompletedCheckpointStorageLocation
-
disposeStorageLocation
Description 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
-