public class LocalRecoveryConfig extends Object
Modifier and Type | Field and Description |
---|---|
static LocalRecoveryConfig |
BACKUP_AND_RECOVERY_DISABLED |
Constructor and Description |
---|
LocalRecoveryConfig(boolean localRecoveryEnabled,
boolean localBackupEnabled,
LocalSnapshotDirectoryProvider directoryProvider) |
Modifier and Type | Method and Description |
---|---|
static LocalRecoveryConfig |
backupAndRecoveryEnabled(LocalSnapshotDirectoryProvider directoryProvider) |
Optional<LocalSnapshotDirectoryProvider> |
getLocalStateDirectoryProvider() |
boolean |
isLocalBackupEnabled() |
boolean |
isLocalRecoveryEnabled() |
boolean |
isLocalRecoveryOrLocalBackupEnabled() |
static Supplier<IllegalStateException> |
localRecoveryNotEnabled() |
String |
toString() |
public static final LocalRecoveryConfig BACKUP_AND_RECOVERY_DISABLED
public LocalRecoveryConfig(boolean localRecoveryEnabled, boolean localBackupEnabled, @Nullable LocalSnapshotDirectoryProvider directoryProvider)
public boolean isLocalRecoveryEnabled()
public boolean isLocalBackupEnabled()
public boolean isLocalRecoveryOrLocalBackupEnabled()
public Optional<LocalSnapshotDirectoryProvider> getLocalStateDirectoryProvider()
public static Supplier<IllegalStateException> localRecoveryNotEnabled()
public static LocalRecoveryConfig backupAndRecoveryEnabled(@Nonnull LocalSnapshotDirectoryProvider directoryProvider)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.