Interface StateChangelogStorageFactory
-
- All Known Implementing Classes:
FsStateChangelogStorageFactory
,InMemoryStateChangelogStorageFactory
@Internal public interface StateChangelogStorageFactory
A factory forStateChangelogStorage
. Please useStateChangelogStorageLoader
to createStateChangelogStorage
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StateChangelogStorage<?>
createStorage(JobID jobID, Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig)
Create the storage based on a configuration.StateChangelogStorageView<?>
createStorageView(Configuration configuration)
Create the storage for recovery.String
getIdentifier()
Get the identifier for user to use this changelog storage factory.
-
-
-
Method Detail
-
getIdentifier
String getIdentifier()
Get the identifier for user to use this changelog storage factory.
-
createStorage
StateChangelogStorage<?> createStorage(JobID jobID, Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) throws IOException
Create the storage based on a configuration.- Throws:
IOException
-
createStorageView
StateChangelogStorageView<?> createStorageView(Configuration configuration) throws IOException
Create the storage for recovery.- Throws:
IOException
-
-