Package com.linkedin.venice.meta
Enum BackupStrategy
- java.lang.Object
-
- java.lang.Enum<BackupStrategy>
-
- com.linkedin.venice.meta.BackupStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BackupStrategy>
public enum BackupStrategy extends java.lang.Enum<BackupStrategy>
Enums of the strategies used to backup older store versions in Venice.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_ON_NEW_PUSH_START
Delete versions on SN (including kafka and metadata) to preserve only (numVersionsToPreserve-1) backup versions on new push start.KEEP_MIN_VERSIONS
Keep numVersionsToPreserve number of backup version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackupStrategy
fromInt(int i)
static BackupStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BackupStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEEP_MIN_VERSIONS
public static final BackupStrategy KEEP_MIN_VERSIONS
Keep numVersionsToPreserve number of backup version.
-
DELETE_ON_NEW_PUSH_START
public static final BackupStrategy DELETE_ON_NEW_PUSH_START
Delete versions on SN (including kafka and metadata) to preserve only (numVersionsToPreserve-1) backup versions on new push start.
-
-
Method Detail
-
values
public static BackupStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BackupStrategy c : BackupStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackupStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromInt
public static BackupStrategy fromInt(int i)
-
-