Package org.apache.flink.changelog.fs
Class FsStateChangelogStorageFactory
- java.lang.Object
-
- org.apache.flink.changelog.fs.FsStateChangelogStorageFactory
-
- All Implemented Interfaces:
StateChangelogStorageFactory
@Internal public class FsStateChangelogStorageFactory extends Object implements StateChangelogStorageFactory
FsStateChangelogStorage
factory.
-
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description FsStateChangelogStorageFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
configure(Configuration configuration, File newFolder, Duration uploadTimeout, int maxUploadAttempts)
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.
-
-
-
Field Detail
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:StateChangelogStorageFactory
Get the identifier for user to use this changelog storage factory.- Specified by:
getIdentifier
in interfaceStateChangelogStorageFactory
-
createStorage
public StateChangelogStorage<?> createStorage(JobID jobID, Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) throws IOException
Description copied from interface:StateChangelogStorageFactory
Create the storage based on a configuration.- Specified by:
createStorage
in interfaceStateChangelogStorageFactory
- Throws:
IOException
-
createStorageView
public StateChangelogStorageView<?> createStorageView(Configuration configuration)
Description copied from interface:StateChangelogStorageFactory
Create the storage for recovery.- Specified by:
createStorageView
in interfaceStateChangelogStorageFactory
-
configure
public static void configure(Configuration configuration, File newFolder, Duration uploadTimeout, int maxUploadAttempts)
-
-