Enum Class DataReplicationPolicy

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

public enum DataReplicationPolicy extends Enum<DataReplicationPolicy>
The data replication policy determines which fabric to use for sending real-time writes from clients and where to direct servers for real-time data consumption. If active-active replication is enabled, the data replication policy is bypassed, as writes are sent to the local fabric.
  • Enum Constant Details

    • NON_AGGREGATE

      public static final DataReplicationPolicy NON_AGGREGATE
      Default value. Samza job per colo pushes to local real-time topic. Leader SNs replicate data to local version topic.
    • AGGREGATE

      public static final DataReplicationPolicy AGGREGATE
      Single Samza job or Samza job per colo pushes to real-time topic in parent colo. Leader SNs in each colo replicate data from remote real-time topic to local version topic.
    • NONE

      @Deprecated public static final DataReplicationPolicy NONE
      Deprecated.
    • ACTIVE_ACTIVE

      @Deprecated public static final DataReplicationPolicy ACTIVE_ACTIVE
      Deprecated.
  • Method Details

    • values

      public static DataReplicationPolicy[] 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 DataReplicationPolicy 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
    • getValue

      public int getValue()
    • getDataReplicationPolicyMap

      public static Map<Integer,DataReplicationPolicy> getDataReplicationPolicyMap()
    • valueOf

      public static DataReplicationPolicy valueOf(int value)
      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:
      value - 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