Enum Class RedundancyTier
- All Implemented Interfaces:
Serializable, Comparable<RedundancyTier>, Constable
The least redundancy a design accepts. Each tier is an explicit, checkable rule on the SET of
metros a design uses (enforced by the
minimum_redundancy constraint); no tier steers
selection any other way, and none silently forces a cross-region spread.
NONE: one metro is enough.N_PLUS_1: at least two metros, at least two of them in the same region (a nearby standby that fails over without crossing a region).MULTI_METRO: at least two metros, in any regions.MULTI_REGION: at least two metros in at least two different regions.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAt least two metros in any regions.At least two metros spanning at least two regions.At least two metros, at least two of which share a region.No redundancy requirement: a single metro satisfies the tier. -
Method Summary
Modifier and TypeMethodDescriptionstatic RedundancyTierReturns the enum constant of this class with the specified name.static RedundancyTier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No redundancy requirement: a single metro satisfies the tier. -
N_PLUS_1
At least two metros, at least two of which share a region. -
MULTI_METRO
At least two metros in any regions. -
MULTI_REGION
At least two metros spanning at least two regions.
-
-
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
-