public class RocksDBStateUploader extends Object implements Closeable
| Constructor and Description |
|---|
RocksDBStateUploader(int numberOfSnapshottingThreads) |
RocksDBStateUploader(RocksDBStateDataTransferHelper transfer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath> |
uploadFilesToCheckpointFs(List<Path> files,
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
org.apache.flink.runtime.state.CheckpointedStateScope stateScope,
org.apache.flink.core.fs.CloseableRegistry closeableRegistry,
org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry)
Upload all the files to checkpoint fileSystem using specified number of threads.
|
@VisibleForTesting public RocksDBStateUploader(int numberOfSnapshottingThreads)
public RocksDBStateUploader(RocksDBStateDataTransferHelper transfer)
public List<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath> uploadFilesToCheckpointFs(@Nonnull List<Path> files, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.CheckpointedStateScope stateScope, org.apache.flink.core.fs.CloseableRegistry closeableRegistry, org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry) throws Exception
files - The files will be uploaded to checkpoint filesystem.checkpointStreamFactory - The checkpoint streamFactory used to create outputstream.stateScope - Exception - Thrown if can not upload all the files.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.