public class RocksDBStateDownloader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
| Constructor and Description |
|---|
RocksDBStateDownloader(int restoringThreadNum) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
transferAllStateDataToDirectory(org.apache.flink.runtime.state.IncrementalRemoteKeyedStateHandle restoreStateHandle,
Path dest,
org.apache.flink.core.fs.CloseableRegistry closeableRegistry)
Transfer all state data to the target directory using specified number of threads.
|
protected final ExecutorService executorService
public void transferAllStateDataToDirectory(org.apache.flink.runtime.state.IncrementalRemoteKeyedStateHandle restoreStateHandle,
Path dest,
org.apache.flink.core.fs.CloseableRegistry closeableRegistry)
throws Exception
restoreStateHandle - Handles used to retrieve the state data.dest - The target directory which the state data will be stored.Exception - Thrown if can not transfer all the state data.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.