public class RocksDBStateDownloader extends Object implements Closeable
Constructor and Description |
---|
RocksDBStateDownloader(int restoringThreadNum) |
RocksDBStateDownloader(RocksDBStateDataTransferHelper transfer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
transferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests,
CloseableRegistry closeableRegistry)
Transfer all state data to the target directory, as specified in the download requests.
|
@VisibleForTesting public RocksDBStateDownloader(int restoringThreadNum)
public RocksDBStateDownloader(RocksDBStateDataTransferHelper transfer)
public void transferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadRequests, CloseableRegistry closeableRegistry) throws Exception
downloadRequests
- the list of downloads.Exception
- If anything about the download goes wrong.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.