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,org.apache.flink.runtime.state.changelog.StateChangelogStorage<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>,org.apache.flink.runtime.state.changelog.StateChangelogStorageView<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>
@Experimental
@ThreadSafe
public class FsStateChangelogStorage
extends FsStateChangelogStorageForRecovery
implements org.apache.flink.runtime.state.changelog.StateChangelogStorage<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>
Filesystem-based implementation of
StateChangelogStorage.-
Constructor Summary
ConstructorsConstructorDescriptionFsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration config, org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) FsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration config, org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup metricGroup, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) FsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, boolean compression, int bufferSize, ChangelogStorageMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) FsStateChangelogStorage(StateChangeUploadScheduler uploader, long preEmptivePersistThresholdInBytes, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.flink.changelog.fs.FsStateChangelogWritercreateWriter(String operatorID, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, org.apache.flink.api.common.operators.MailboxExecutor mailboxExecutor) org.apache.flink.runtime.io.AvailabilityProviderMethods inherited from class org.apache.flink.changelog.fs.FsStateChangelogStorageForRecovery
createReaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.changelog.StateChangelogStorageView
createReader
-
Constructor Details
-
FsStateChangelogStorage
public FsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration config, org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup metricGroup, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) throws IOException - Throws:
IOException
-
FsStateChangelogStorage
public FsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration config, org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) throws IOException - Throws:
IOException
-
FsStateChangelogStorage
@VisibleForTesting public FsStateChangelogStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.core.fs.Path basePath, boolean compression, int bufferSize, ChangelogStorageMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig) throws IOException - Throws:
IOException
-
FsStateChangelogStorage
@VisibleForTesting public FsStateChangelogStorage(StateChangeUploadScheduler uploader, long preEmptivePersistThresholdInBytes, TaskChangelogRegistry changelogRegistry, org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig)
-
-
Method Details
-
createWriter
public org.apache.flink.changelog.fs.FsStateChangelogWriter createWriter(String operatorID, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, org.apache.flink.api.common.operators.MailboxExecutor mailboxExecutor) - Specified by:
createWriterin interfaceorg.apache.flink.runtime.state.changelog.StateChangelogStorage<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.flink.runtime.state.changelog.StateChangelogStorageView<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>- Overrides:
closein classFsStateChangelogStorageForRecovery- Throws:
Exception
-
getAvailabilityProvider
public org.apache.flink.runtime.io.AvailabilityProvider getAvailabilityProvider()- Specified by:
getAvailabilityProviderin interfaceorg.apache.flink.runtime.state.changelog.StateChangelogStorage<org.apache.flink.runtime.state.changelog.ChangelogStateHandleStreamImpl>
-