Package org.apache.flink.changelog.fs
Class FsStateChangelogStorage
- java.lang.Object
-
- org.apache.flink.changelog.fs.FsStateChangelogStorageForRecovery
-
- org.apache.flink.changelog.fs.FsStateChangelogStorage
-
- All Implemented Interfaces:
AutoCloseable
,StateChangelogStorage<ChangelogStateHandleStreamImpl>
,StateChangelogStorageView<ChangelogStateHandleStreamImpl>
@Experimental @ThreadSafe public class FsStateChangelogStorage extends FsStateChangelogStorageForRecovery implements StateChangelogStorage<ChangelogStateHandleStreamImpl>
Filesystem-based implementation ofStateChangelogStorage
.
-
-
Constructor Summary
Constructors Constructor Description FsStateChangelogStorage(JobID jobID, Configuration config, TaskManagerJobMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig)
FsStateChangelogStorage(JobID jobID, Configuration config, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig)
FsStateChangelogStorage(JobID jobID, Path basePath, boolean compression, int bufferSize, ChangelogStorageMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig)
FsStateChangelogStorage(StateChangeUploadScheduler uploader, long preEmptivePersistThresholdInBytes, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.flink.changelog.fs.FsStateChangelogWriter
createWriter(String operatorID, KeyGroupRange keyGroupRange, MailboxExecutor mailboxExecutor)
AvailabilityProvider
getAvailabilityProvider()
-
Methods inherited from class org.apache.flink.changelog.fs.FsStateChangelogStorageForRecovery
createReader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.changelog.StateChangelogStorageView
createReader
-
-
-
-
Constructor Detail
-
FsStateChangelogStorage
public FsStateChangelogStorage(JobID jobID, Configuration config, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) throws IOException
- Throws:
IOException
-
FsStateChangelogStorage
public FsStateChangelogStorage(JobID jobID, Configuration config, TaskManagerJobMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig) throws IOException
- Throws:
IOException
-
FsStateChangelogStorage
@VisibleForTesting public FsStateChangelogStorage(JobID jobID, Path basePath, boolean compression, int bufferSize, ChangelogStorageMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig) throws IOException
- Throws:
IOException
-
FsStateChangelogStorage
@VisibleForTesting public FsStateChangelogStorage(StateChangeUploadScheduler uploader, long preEmptivePersistThresholdInBytes, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig)
-
-
Method Detail
-
createWriter
public org.apache.flink.changelog.fs.FsStateChangelogWriter createWriter(String operatorID, KeyGroupRange keyGroupRange, MailboxExecutor mailboxExecutor)
- Specified by:
createWriter
in interfaceStateChangelogStorage<ChangelogStateHandleStreamImpl>
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceStateChangelogStorageView<ChangelogStateHandleStreamImpl>
- Overrides:
close
in classFsStateChangelogStorageForRecovery
- Throws:
Exception
-
getAvailabilityProvider
public AvailabilityProvider getAvailabilityProvider()
- Specified by:
getAvailabilityProvider
in interfaceStateChangelogStorage<ChangelogStateHandleStreamImpl>
-
-