Package org.apache.flink.changelog.fs
Class StateChangeFsUploader
java.lang.Object
org.apache.flink.changelog.fs.AbstractStateChangeFsUploader
org.apache.flink.changelog.fs.StateChangeFsUploader
- All Implemented Interfaces:
AutoCloseable,StateChangeUploader
A synchronous
StateChangeUploadScheduler implementation that uploads the changes using
FileSystem.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.changelog.fs.StateChangeUploader
StateChangeUploader.UploadTasksResult -
Field Summary
FieldsFields inherited from class org.apache.flink.changelog.fs.AbstractStateChangeFsUploader
bufferSize, compression, metrics -
Constructor Summary
ConstructorsConstructorDescriptionStateChangeFsUploader(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.FileSystem fileSystem, boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry) StateChangeFsUploader(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.FileSystem fileSystem, 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 TypeMethodDescriptionvoidclose()org.apache.flink.core.fs.Pathorg.apache.flink.changelog.fs.OutputStreamWithPosMethods inherited from class org.apache.flink.changelog.fs.AbstractStateChangeFsUploader
generateFileName, upload
-
Field Details
-
PATH_SUB_DIR
- See Also:
-
-
Constructor Details
-
StateChangeFsUploader
@VisibleForTesting public StateChangeFsUploader(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.FileSystem fileSystem, boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry) -
StateChangeFsUploader
public StateChangeFsUploader(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, org.apache.flink.core.fs.FileSystem fileSystem, 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
-
getBasePath
@VisibleForTesting public org.apache.flink.core.fs.Path getBasePath() -
prepareStream
- Throws:
IOException
-
close
public void close()
-