public class PersistentMetadataCheckpointStorageLocation extends MemCheckpointStreamFactory implements CheckpointStorageLocation
MemoryStateBackend
when it durably persists the
metadata in a file system.MemCheckpointStreamFactory.MemoryCheckpointOutputStream
Constructor and Description |
---|
PersistentMetadataCheckpointStorageLocation(FileSystem fileSystem,
Path checkpointDir,
int maxStateSize)
Creates a checkpoint storage persists metadata to a file system and stores state in line in
state handles with the metadata.
|
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.
|
CheckpointStorageLocationReference |
getLocationReference()
Gets a reference to the storage location.
|
canFastDuplicate, createCheckpointStateOutputStream, duplicate, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFastDuplicate, couldReuseStateHandle, createCheckpointStateOutputStream, duplicate, reusePreviousStateHandle
public PersistentMetadataCheckpointStorageLocation(FileSystem fileSystem, Path checkpointDir, int maxStateSize)
fileSystem
- The file system to which the metadata will be written.checkpointDir
- The directory where the checkpoint metadata will be written.public CheckpointMetadataOutputStream createMetadataOutputStream() throws IOException
CheckpointStorageLocation
createMetadataOutputStream
in interface CheckpointStorageLocation
IOException
- Thrown, if the stream cannot be opened due to an I/O error.public void disposeOnFailure() throws IOException
CheckpointStorageLocation
disposeOnFailure
in interface CheckpointStorageLocation
IOException
public CheckpointStorageLocationReference getLocationReference()
CheckpointStorageLocation
If there is no custom location information that needs to be communicated, this method can
simply return CheckpointStorageLocationReference.getDefault()
.
getLocationReference
in interface CheckpointStorageLocation
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.