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(IncrementalRemoteKeyedStateHandle restoreStateHandle,
Path dest,
CloseableRegistry closeableRegistry)
Transfer all state data to the target directory using specified number of threads.
|
protected final ExecutorService executorService
public void transferAllStateDataToDirectory(IncrementalRemoteKeyedStateHandle restoreStateHandle, Path dest, 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 Closeable
close
in interface AutoCloseable
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.