Enum DataReplicationPolicy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DataReplicationPolicy>

    public enum DataReplicationPolicy
    extends java.lang.Enum<DataReplicationPolicy>
    Enums of the policies used to decide how real-time samza data is replicated.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACTIVE_ACTIVE
      Samza job per colo pushes to local real-time topic.
      AGGREGATE
      Single Samza job or Samza job per colo pushes to real-time topic in parent colo.
      NON_AGGREGATE
      Default value.
      NONE
      This enum value is used in 2 cases: 1.
    • Enum Constant Detail

      • 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

        public static final DataReplicationPolicy NONE
        This enum value is used in 2 cases: 1. batch-only stores since it has no real-time data replication. 2. incremental push stores that do not have Samza jobs.
      • ACTIVE_ACTIVE

        public static final DataReplicationPolicy ACTIVE_ACTIVE
        Samza job per colo pushes to local real-time topic. Leader SNs replicate data from real-time topic in all colos to local version topic.
    • Method Detail

      • values

        public static DataReplicationPolicy[] 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 (DataReplicationPolicy c : DataReplicationPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataReplicationPolicy 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 name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
      • getDataReplicationPolicyMap

        public static java.util.Map<java.lang.Integer,​DataReplicationPolicy> getDataReplicationPolicyMap()
      • valueOf

        public static DataReplicationPolicy valueOf​(int value)
        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:
        value - 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 name
        java.lang.NullPointerException - if the argument is null