public class PersistentMetadataCheckpointStorageLocation extends MemCheckpointStreamFactory implements CheckpointStorageLocation
MemoryStateBackend when it durably persists the
metadata in a file system.MemCheckpointStreamFactory.MemoryCheckpointOutputStreamCheckpointStreamFactory.CheckpointStateOutputStream| 构造器和说明 |
|---|
PersistentMetadataCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fileSystem,
org.apache.flink.core.fs.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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
createCheckpointStateOutputStream, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateCheckpointStateOutputStreampublic PersistentMetadataCheckpointStorageLocation(org.apache.flink.core.fs.FileSystem fileSystem,
org.apache.flink.core.fs.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
CheckpointStorageLocationcreateMetadataOutputStream 在接口中 CheckpointStorageLocationIOException - Thrown, if the stream cannot be opened due to an I/O error.public void disposeOnFailure()
throws IOException
CheckpointStorageLocationdisposeOnFailure 在接口中 CheckpointStorageLocationIOExceptionpublic CheckpointStorageLocationReference getLocationReference()
CheckpointStorageLocationIf there is no custom location information that needs to be communicated, this method can
simply return CheckpointStorageLocationReference.getDefault().
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.