public abstract class AbstractStateChangeFsUploader extends Object implements StateChangeUploader
StateChangeUploader.UploadTasksResult
Modifier and Type | Field and Description |
---|---|
protected int |
bufferSize |
protected boolean |
compression |
protected ChangelogStorageMetricGroup |
metrics |
Constructor and Description |
---|
AbstractStateChangeFsUploader(boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry,
BiFunction<Path,Long,StreamStateHandle> handleFactory) |
Modifier and Type | Method and Description |
---|---|
protected String |
generateFileName() |
StateChangeUploader.UploadTasksResult |
upload(Collection<StateChangeUploadScheduler.UploadTask> tasks)
Execute the upload task and return the results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected final ChangelogStorageMetricGroup metrics
protected final boolean compression
protected final int bufferSize
public AbstractStateChangeFsUploader(boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry, BiFunction<Path,Long,StreamStateHandle> handleFactory)
public StateChangeUploader.UploadTasksResult upload(Collection<StateChangeUploadScheduler.UploadTask> tasks) throws IOException
StateChangeUploader
complete
the tasks.upload
in interface StateChangeUploader
IOException
protected String generateFileName()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.