public class RocksDBStateUploader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
| Constructor and Description |
|---|
RocksDBStateUploader(int numberOfSnapshottingThreads) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<org.apache.flink.runtime.state.StateHandleID,org.apache.flink.runtime.state.StreamStateHandle> |
uploadFilesToCheckpointFs(Map<org.apache.flink.runtime.state.StateHandleID,Path> files,
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
org.apache.flink.core.fs.CloseableRegistry closeableRegistry)
Upload all the files to checkpoint fileSystem using specified number of threads.
|
protected final ExecutorService executorService
public RocksDBStateUploader(int numberOfSnapshottingThreads)
public Map<org.apache.flink.runtime.state.StateHandleID,org.apache.flink.runtime.state.StreamStateHandle> uploadFilesToCheckpointFs(@Nonnull Map<org.apache.flink.runtime.state.StateHandleID,Path> files, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.core.fs.CloseableRegistry closeableRegistry) throws Exception
files - The files will be uploaded to checkpoint filesystem.checkpointStreamFactory - The checkpoint streamFactory used to create outputstream.Exception - Thrown if can not upload all the files.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.