Package com.linkedin.venice.meta
Enum Class BackupStrategy
- All Implemented Interfaces:
VeniceEnumValue
,Serializable
,Comparable<BackupStrategy>
,Constable
Enums of the strategies used to backup older store versions in Venice.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDelete versions on SN (including kafka and metadata) to preserve only (numVersionsToPreserve-1) backup versions on new push start.Keep numVersionsToPreserve number of backup version. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupStrategy
fromInt
(int i) int
getValue()
static BackupStrategy
Returns the enum constant of this class with the specified name.static BackupStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEEP_MIN_VERSIONS
Keep numVersionsToPreserve number of backup version. -
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
-
getValue
public int getValue()- Specified by:
getValue
in interfaceVeniceEnumValue
-