public class RocksDBStateDownloader extends Object
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
executorService |
Constructor and Description |
---|
RocksDBStateDownloader(int restoringThreadNum,
StateBackend.CustomInitializationMetrics customInitializationMetrics) |
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.
|
protected final ExecutorService executorService
public RocksDBStateDownloader(int restoringThreadNum, StateBackend.CustomInitializationMetrics customInitializationMetrics)
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()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.