public class RocksDBStateUploader extends Object
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
executorService |
Constructor and Description |
---|
RocksDBStateUploader(int numberOfSnapshottingThreads) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<IncrementalKeyedStateHandle.HandleAndLocalPath> |
uploadFilesToCheckpointFs(List<Path> files,
CheckpointStreamFactory checkpointStreamFactory,
CheckpointedStateScope stateScope,
CloseableRegistry closeableRegistry,
CloseableRegistry tmpResourcesRegistry)
Upload all the files to checkpoint fileSystem using specified number of threads.
|
protected final ExecutorService executorService
public RocksDBStateUploader(int numberOfSnapshottingThreads)
public List<IncrementalKeyedStateHandle.HandleAndLocalPath> uploadFilesToCheckpointFs(@Nonnull List<Path> files, CheckpointStreamFactory checkpointStreamFactory, CheckpointedStateScope stateScope, CloseableRegistry closeableRegistry, CloseableRegistry tmpResourcesRegistry) throws Exception
files
- The files will be uploaded to checkpoint filesystem.checkpointStreamFactory
- The checkpoint streamFactory used to create outputstream.stateScope
- Exception
- Thrown if can not upload all the files.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.