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 ofStateChangelogStorage.
-
-
Constructor Summary
Constructors Constructor Description 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)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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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.AvailabilityProvidergetAvailabilityProvider()-
Methods inherited from class org.apache.flink.changelog.fs.FsStateChangelogStorageForRecovery
createReader
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public void close() throws Exception- 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>
-
-