Class RocksDBStateDownloader
- java.lang.Object
-
- org.apache.flink.contrib.streaming.state.RocksDBStateDownloader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RocksDBStateDownloader extends Object
Help class for downloading RocksDB state files.
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutorServiceexecutorService
-
Constructor Summary
Constructors Constructor Description RocksDBStateDownloader(int restoringThreadNum, org.apache.flink.runtime.state.StateBackend.CustomInitializationMetrics customInitializationMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidtransferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests, org.apache.flink.core.fs.CloseableRegistry closeableRegistry)Transfer all state data to the target directory, as specified in the download requests.
-
-
-
Field Detail
-
executorService
protected final ExecutorService executorService
-
-
Method Detail
-
transferAllStateDataToDirectory
public void transferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests, org.apache.flink.core.fs.CloseableRegistry 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
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-