Enum Class BackupStrategy

java.lang.Object
java.lang.Enum<BackupStrategy>
com.linkedin.venice.meta.BackupStrategy
All Implemented Interfaces:
VeniceEnumValue, Serializable, Comparable<BackupStrategy>, Constable

public enum BackupStrategy extends Enum<BackupStrategy> implements VeniceEnumValue
Enums of the strategies used to backup older store versions in Venice.
  • Enum Constant Details

    • 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 Details

    • values

      public static BackupStrategy[] 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

      public static BackupStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromInt

      public static BackupStrategy fromInt(int i)
    • getValue

      public int getValue()
      Specified by:
      getValue in interface VeniceEnumValue