@Internal public class FsStateChangelogStorageFactory extends Object implements StateChangelogStorageFactory
FsStateChangelogStorage
factory.Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
Constructor and Description |
---|
FsStateChangelogStorageFactory() |
Modifier and Type | Method and 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.
|
public static final String IDENTIFIER
public String getIdentifier()
StateChangelogStorageFactory
getIdentifier
in interface StateChangelogStorageFactory
public StateChangelogStorage<?> createStorage(JobID jobID, Configuration configuration, TaskManagerJobMetricGroup metricGroup, LocalRecoveryConfig localRecoveryConfig) throws IOException
StateChangelogStorageFactory
createStorage
in interface StateChangelogStorageFactory
IOException
public StateChangelogStorageView<?> createStorageView(Configuration configuration)
StateChangelogStorageFactory
createStorageView
in interface StateChangelogStorageFactory
public static void configure(Configuration configuration, File newFolder, Duration uploadTimeout, int maxUploadAttempts)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.