Package io.dingodb.common
Enum Class Common.RegionState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Common.RegionState>,Constable
- Enclosing class:
- Common
public static enum Common.RegionState
extends Enum<Common.RegionState>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
dingodb.pb.common.RegionState-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionregion need to deleteregion is deletedregion is deletingstart to expandnew peer joined raftleader start to expand regionother state add hereregion need to mergeregion is mergedregion is mergtingcreate new regionthis is a illegal stateREGION_NORMAL = 2;leader start to shrink regionshrink finish, maybe we don't need this statestart to shrinkregion need to splitregion is splited (split's past tense is split, not splited, use as a symbol here)region is splittingregion is standby, used in splitregion is tombstone, need to delete -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intregion need to deletestatic final intregion is deletedstatic final intregion is deletingstatic final intstart to expandstatic final intnew peer joined raftstatic final intleader start to expand regionstatic final intother state add herestatic final intregion need to mergestatic final intregion is mergedstatic final intregion is mergtingstatic final intcreate new regionstatic final intthis is a illegal statestatic final intREGION_NORMAL = 2;static final intleader start to shrink regionstatic final intshrink finish, maybe we don't need this statestatic final intstart to shrinkstatic final intregion need to splitstatic final intregion is splited (split's past tense is split, not splited, use as a symbol here)static final intregion is splittingstatic final intregion is standby, used in splitstatic final intregion is tombstone, need to delete -
Method Summary
Modifier and TypeMethodDescriptionstatic Common.RegionStateforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Common.RegionState>static Common.RegionStatevalueOf(int value) Deprecated.static Common.RegionStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Common.RegionStateReturns the enum constant of this class with the specified name.static Common.RegionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGION_NONE
this is a illegal state
REGION_NONE = 0; -
REGION_NEW
create new region
REGION_NEW = 1; -
REGION_NORMAL
REGION_NORMAL = 2; -
REGION_EXPAND
start to expand
REGION_EXPAND = 3; -
REGION_EXPANDING
leader start to expand region
REGION_EXPANDING = 4; -
REGION_EXPANDED
new peer joined raft
REGION_EXPANDED = 5; -
REGION_SHRINK
start to shrink
REGION_SHRINK = 6; -
REGION_SHIRINKING
leader start to shrink region
REGION_SHIRINKING = 7; -
REGION_SHRANK
shrink finish, maybe we don't need this state
REGION_SHRANK = 8; -
REGION_DELETE
region need to delete
REGION_DELETE = 9; -
REGION_DELETING
region is deleting
REGION_DELETING = 10; -
REGION_DELETED
region is deleted
REGION_DELETED = 11; -
REGION_SPLIT
region need to split
REGION_SPLIT = 12; -
REGION_SPLITTING
region is splitting
REGION_SPLITTING = 13; -
REGION_SPLITED
region is splited (split's past tense is split, not splited, use as a symbol here)
REGION_SPLITED = 14; -
REGION_MERGE
region need to merge
REGION_MERGE = 15; -
REGION_MERGING
region is mergting
REGION_MERGING = 16; -
REGION_MERGED
region is merged
REGION_MERGED = 17; -
REGION_ILLEGAL
other state add here
REGION_ILLEGAL = 20; -
REGION_STANDBY
region is standby, used in split
REGION_STANDBY = 21; -
REGION_TOMBSTONE
region is tombstone, need to delete
REGION_TOMBSTONE = 22; -
UNRECOGNIZED
-
-
Field Details
-
REGION_NONE_VALUE
public static final int REGION_NONE_VALUEthis is a illegal state
REGION_NONE = 0;- See Also:
-
REGION_NEW_VALUE
public static final int REGION_NEW_VALUEcreate new region
REGION_NEW = 1;- See Also:
-
REGION_NORMAL_VALUE
public static final int REGION_NORMAL_VALUEREGION_NORMAL = 2;- See Also:
-
REGION_EXPAND_VALUE
public static final int REGION_EXPAND_VALUEstart to expand
REGION_EXPAND = 3;- See Also:
-
REGION_EXPANDING_VALUE
public static final int REGION_EXPANDING_VALUEleader start to expand region
REGION_EXPANDING = 4;- See Also:
-
REGION_EXPANDED_VALUE
public static final int REGION_EXPANDED_VALUEnew peer joined raft
REGION_EXPANDED = 5;- See Also:
-
REGION_SHRINK_VALUE
public static final int REGION_SHRINK_VALUEstart to shrink
REGION_SHRINK = 6;- See Also:
-
REGION_SHIRINKING_VALUE
public static final int REGION_SHIRINKING_VALUEleader start to shrink region
REGION_SHIRINKING = 7;- See Also:
-
REGION_SHRANK_VALUE
public static final int REGION_SHRANK_VALUEshrink finish, maybe we don't need this state
REGION_SHRANK = 8;- See Also:
-
REGION_DELETE_VALUE
public static final int REGION_DELETE_VALUEregion need to delete
REGION_DELETE = 9;- See Also:
-
REGION_DELETING_VALUE
public static final int REGION_DELETING_VALUEregion is deleting
REGION_DELETING = 10;- See Also:
-
REGION_DELETED_VALUE
public static final int REGION_DELETED_VALUEregion is deleted
REGION_DELETED = 11;- See Also:
-
REGION_SPLIT_VALUE
public static final int REGION_SPLIT_VALUEregion need to split
REGION_SPLIT = 12;- See Also:
-
REGION_SPLITTING_VALUE
public static final int REGION_SPLITTING_VALUEregion is splitting
REGION_SPLITTING = 13;- See Also:
-
REGION_SPLITED_VALUE
public static final int REGION_SPLITED_VALUEregion is splited (split's past tense is split, not splited, use as a symbol here)
REGION_SPLITED = 14;- See Also:
-
REGION_MERGE_VALUE
public static final int REGION_MERGE_VALUEregion need to merge
REGION_MERGE = 15;- See Also:
-
REGION_MERGING_VALUE
public static final int REGION_MERGING_VALUEregion is mergting
REGION_MERGING = 16;- See Also:
-
REGION_MERGED_VALUE
public static final int REGION_MERGED_VALUEregion is merged
REGION_MERGED = 17;- See Also:
-
REGION_ILLEGAL_VALUE
public static final int REGION_ILLEGAL_VALUEother state add here
REGION_ILLEGAL = 20;- See Also:
-
REGION_STANDBY_VALUE
public static final int REGION_STANDBY_VALUEregion is standby, used in split
REGION_STANDBY = 21;- See Also:
-
REGION_TOMBSTONE_VALUE
public static final int REGION_TOMBSTONE_VALUEregion is tombstone, need to delete
REGION_TOMBSTONE = 22;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
desc- 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
-