Interface StateChangelogStorageFactory
- All Known Implementing Classes:
InMemoryStateChangelogStorageFactory
@Internal
public interface StateChangelogStorageFactory
A factory for
StateChangelogStorage. Please use StateChangelogStorageLoader to
create StateChangelogStorage.-
Method Summary
Modifier and TypeMethodDescriptioncreateStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) Create the storage based on a configuration.createStorageView(org.apache.flink.configuration.Configuration configuration) Create the storage for recovery.Get the identifier for user to use this changelog storage factory.
-
Method Details
-
getIdentifier
String getIdentifier()Get the identifier for user to use this changelog storage factory. -
createStorage
StateChangelogStorage<?> createStorage(org.apache.flink.api.common.JobID jobID, org.apache.flink.configuration.Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) throws IOException Create the storage based on a configuration.- Throws:
IOException
-
createStorageView
StateChangelogStorageView<?> createStorageView(org.apache.flink.configuration.Configuration configuration) throws IOException Create the storage for recovery.- Throws:
IOException
-