Enum RegionGroupStatus
- All Implemented Interfaces:
Serializable,Comparable<RegionGroupStatus>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor strong consistency algorithms, the RegionGroup is considered as Available when the number of Regions in the Running status is greater than half.In scenarios other than the two mentioned above.All Regions in RegionGroup are in the Running status -
Method Summary
Modifier and TypeMethodDescriptionintcompare(RegionGroupStatus other) Compare the weight of two RegionGroupStatus.static RegionGroupStatusstatic RegionGroupStatusReturns the enum constant of this type with the specified name.static RegionGroupStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Running
All Regions in RegionGroup are in the Running status -
Available
For strong consistency algorithms, the RegionGroup is considered as Available when the number of Regions in the Running status is greater than half. For weak consistency algorithms, the RegionGroup is considered as Available when the number of Regions in the Running status is greater than or equal to 1. To avoid the impact of Removing and Adding region status on region group status evaluation, this status, which only occurs during region migration and reconstruction, can be excluded. The denominator uses the number of regions excluding Removing and Adding status, while the numerator uses regions in the Running status, ensuring high availability evaluation remains unaffected. -
Disabled
In scenarios other than the two mentioned above.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getStatus
-
parse
-
compare
Compare the weight of two RegionGroupStatus.Running > Available > Discouraged > Disabled
-