Package com.linkedin.venice.controller
Enum Class ParentControllerRegionState
java.lang.Object
java.lang.Enum<ParentControllerRegionState>
com.linkedin.venice.controller.ParentControllerRegionState
- All Implemented Interfaces:
Serializable
,Comparable<ParentControllerRegionState>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParentControllerRegionState
Returns the enum constant of this class with the specified name.static ParentControllerRegionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
The region is active, so the parent controller in the region is serving requests -
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
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
-