Class FsCompletedCheckpointStorageLocation
- java.lang.Object
-
- org.apache.flink.runtime.state.filesystem.FsCompletedCheckpointStorageLocation
-
- All Implemented Interfaces:
Serializable
,CompletedCheckpointStorageLocation
public class FsCompletedCheckpointStorageLocation extends Object implements CompletedCheckpointStorageLocation
ACompletedCheckpointStorageLocation
that 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(FileSystem fs, Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disposeStorageLocation()
Disposes the storage location.Path
getExclusiveCheckpointDir()
String
getExternalPointer()
Gets the external pointer to the checkpoint.FileStateHandle
getMetadataHandle()
Gets the state handle to the checkpoint's metadata.
-
-
-
Constructor Detail
-
FsCompletedCheckpointStorageLocation
public FsCompletedCheckpointStorageLocation(FileSystem fs, Path exclusiveCheckpointDir, FileStateHandle metadataFileHandle, String externalPointer)
-
-
Method Detail
-
getExternalPointer
public String getExternalPointer()
Description copied from interface:CompletedCheckpointStorageLocation
Gets 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:
getExternalPointer
in interfaceCompletedCheckpointStorageLocation
-
getExclusiveCheckpointDir
public Path getExclusiveCheckpointDir()
-
getMetadataHandle
public FileStateHandle getMetadataHandle()
Description copied from interface:CompletedCheckpointStorageLocation
Gets the state handle to the checkpoint's metadata.- Specified by:
getMetadataHandle
in interfaceCompletedCheckpointStorageLocation
-
disposeStorageLocation
public void disposeStorageLocation() throws IOException
Description copied from interface:CompletedCheckpointStorageLocation
Disposes 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:
disposeStorageLocation
in interfaceCompletedCheckpointStorageLocation
- Throws:
IOException
-
-