Package org.apache.flink.changelog.fs
Class AbstractStateChangeFsUploader
- java.lang.Object
-
- org.apache.flink.changelog.fs.AbstractStateChangeFsUploader
-
- All Implemented Interfaces:
AutoCloseable,StateChangeUploader
- Direct Known Subclasses:
DuplicatingStateChangeFsUploader,StateChangeFsUploader
public abstract class AbstractStateChangeFsUploader extends Object implements StateChangeUploader
Base implementation of StateChangeUploader.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.changelog.fs.StateChangeUploader
StateChangeUploader.UploadTasksResult
-
-
Field Summary
Fields Modifier and Type Field Description protected intbufferSizeprotected booleancompressionprotected ChangelogStorageMetricGroupmetrics
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateFileName()StateChangeUploader.UploadTasksResultupload(Collection<StateChangeUploadScheduler.UploadTask> tasks)Execute the upload task and return the results.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Field Detail
-
metrics
protected final ChangelogStorageMetricGroup metrics
-
compression
protected final boolean compression
-
bufferSize
protected final int bufferSize
-
-
Constructor Detail
-
AbstractStateChangeFsUploader
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)
-
-
Method Detail
-
upload
public StateChangeUploader.UploadTasksResult upload(Collection<StateChangeUploadScheduler.UploadTask> tasks) throws IOException
Description copied from interface:StateChangeUploaderExecute the upload task and return the results. It is the caller responsibility tocompletethe tasks.- Specified by:
uploadin interfaceStateChangeUploader- Throws:
IOException
-
generateFileName
protected String generateFileName()
-
-