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,
java.util.function.BiFunction<org.apache.flink.core.fs.Path,Long,org.apache.flink.runtime.state.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, waitcloseprotected final ChangelogStorageMetricGroup metrics
protected final boolean compression
protected final int bufferSize
public AbstractStateChangeFsUploader(boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry,
java.util.function.BiFunction<org.apache.flink.core.fs.Path,Long,org.apache.flink.runtime.state.StreamStateHandle> handleFactory)
public StateChangeUploader.UploadTasksResult upload(Collection<StateChangeUploadScheduler.UploadTask> tasks) throws IOException
StateChangeUploadercomplete the tasks.upload in interface StateChangeUploaderIOExceptionprotected String generateFileName()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.