Enum RegionGroupStatus

java.lang.Object
java.lang.Enum<RegionGroupStatus>
org.apache.iotdb.confignode.manager.partition.RegionGroupStatus
All Implemented Interfaces:
Serializable, Comparable<RegionGroupStatus>

public enum RegionGroupStatus extends Enum<RegionGroupStatus>
  • Enum Constant Details

    • Running

      public static final RegionGroupStatus Running
      All Regions in RegionGroup are in the Running status
    • Available

      public static final RegionGroupStatus 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

      public static final RegionGroupStatus Disabled
      In scenarios other than the two mentioned above.
  • Method Details

    • values

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

      public static RegionGroupStatus valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getStatus

      public String getStatus()
    • parse

      public static RegionGroupStatus parse(String status)
    • compare

      public int compare(RegionGroupStatus other)
      Compare the weight of two RegionGroupStatus.

      Running > Available > Discouraged > Disabled