Package org.apache.flink.state.rocksdb
Class RocksDBStateDownloader
java.lang.Object
org.apache.flink.state.rocksdb.RocksDBStateDownloader
- All Implemented Interfaces:
Closeable,AutoCloseable
Help class for downloading RocksDB state files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidtransferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests, org.apache.flink.core.fs.ICloseableRegistry closeableRegistry) Transfer all state data to the target directory, as specified in the download requests.
-
Constructor Details
-
RocksDBStateDownloader
@VisibleForTesting public RocksDBStateDownloader(int restoringThreadNum) -
RocksDBStateDownloader
-
-
Method Details
-
transferAllStateDataToDirectory
public void transferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests, org.apache.flink.core.fs.ICloseableRegistry closeableRegistry) throws Exception Transfer all state data to the target directory, as specified in the download requests.- Parameters:
downloadRequests- the list of downloads.- Throws:
Exception- If anything about the download goes wrong.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-