Class RocksDBStateDownloader
- java.lang.Object
-
- org.apache.flink.contrib.streaming.state.RocksDBStateDownloader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class RocksDBStateDownloader extends Object implements Closeable
Help class for downloading RocksDB state files.
-
-
Constructor Summary
Constructors Constructor Description RocksDBStateDownloader(int restoringThreadNum)
RocksDBStateDownloader(RocksDBStateDataTransferHelper transfer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
transferAllStateDataToDirectory(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 Detail
-
RocksDBStateDownloader
@VisibleForTesting public RocksDBStateDownloader(int restoringThreadNum)
-
RocksDBStateDownloader
public RocksDBStateDownloader(RocksDBStateDataTransferHelper transfer)
-
-
Method Detail
-
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
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-