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
Base implementation of StateChangeUploader.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.changelog.fs.StateChangeUploader
StateChangeUploader.UploadTasksResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final booleanprotected final ChangelogStorageMetricGroup -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStateChangeFsUploader(boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry, BiFunction<org.apache.flink.core.fs.Path, Long, org.apache.flink.runtime.state.StreamStateHandle> handleFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringExecute the upload task and return the results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
metrics
-
compression
protected final boolean compression -
bufferSize
protected final int bufferSize
-
-
Constructor Details
-
AbstractStateChangeFsUploader
public AbstractStateChangeFsUploader(boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry, BiFunction<org.apache.flink.core.fs.Path, Long, org.apache.flink.runtime.state.StreamStateHandle> handleFactory)
-
-
Method Details
-
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
-