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 int
bufferSize
protected boolean
compression
protected ChangelogStorageMetricGroup
metrics
-
Constructor Summary
Constructors Constructor Description AbstractStateChangeFsUploader(boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry, BiFunction<Path,Long,StreamStateHandle> handleFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
generateFileName()
StateChangeUploader.UploadTasksResult
upload(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, BiFunction<Path,Long,StreamStateHandle> handleFactory)
-
-
Method Detail
-
upload
public StateChangeUploader.UploadTasksResult upload(Collection<StateChangeUploadScheduler.UploadTask> tasks) throws IOException
Description copied from interface:StateChangeUploader
Execute the upload task and return the results. It is the caller responsibility tocomplete
the tasks.- Specified by:
upload
in interfaceStateChangeUploader
- Throws:
IOException
-
generateFileName
protected String generateFileName()
-
-