Package org.apache.flink.runtime.state
Class LocalRecoveryConfig
java.lang.Object
org.apache.flink.runtime.state.LocalRecoveryConfig
This class encapsulates the completed configuration for local recovery, i.e. the root directories
into which all file-based snapshots can be written and the general mode for the local recover
feature.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalRecoveryConfig(boolean localRecoveryEnabled, boolean localBackupEnabled, LocalSnapshotDirectoryProvider directoryProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalRecoveryConfigbackupAndRecoveryEnabled(LocalSnapshotDirectoryProvider directoryProvider) booleanbooleanbooleanstatic Supplier<IllegalStateException>toString()
-
Field Details
-
BACKUP_AND_RECOVERY_DISABLED
-
-
Constructor Details
-
LocalRecoveryConfig
public LocalRecoveryConfig(boolean localRecoveryEnabled, boolean localBackupEnabled, @Nullable LocalSnapshotDirectoryProvider directoryProvider)
-
-
Method Details
-
isLocalRecoveryEnabled
public boolean isLocalRecoveryEnabled() -
isLocalBackupEnabled
public boolean isLocalBackupEnabled() -
isLocalRecoveryOrLocalBackupEnabled
public boolean isLocalRecoveryOrLocalBackupEnabled() -
getLocalStateDirectoryProvider
-
toString
-
localRecoveryNotEnabled
-
backupAndRecoveryEnabled
public static LocalRecoveryConfig backupAndRecoveryEnabled(@Nonnull LocalSnapshotDirectoryProvider directoryProvider)
-