Enum Class ParentControllerRegionState

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

public enum ParentControllerRegionState extends Enum<ParentControllerRegionState>
Enum representing the state of the region where the parent controller resides. i.e., Region dc-0 is ACTIVE while Region dc-1 is PASSIVE This means that ParentController in dc-0 is serving requests while ParentController in dc-1 is rejecting requests
  • Enum Constant Details

    • ACTIVE

      public static final ParentControllerRegionState ACTIVE
      The region is active, so the parent controller in the region is serving requests
    • PASSIVE

      public static final ParentControllerRegionState PASSIVE
      The region is passive, so the parent controller in the region is rejecting requests. This region is ready to take over if components in the currently active region fails
  • Method Details

    • values

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