public static enum Metapb.NodeState extends Enum<Metapb.NodeState> implements com.google.protobuf.ProtocolMessageEnum
NodeState is going to replace StoreState to make the state concept more clear. "Up" is devided into "Preparing" and "Serving" stages so that we can better describe the online process. "Removing" is just like previous `Offline` which is more accurate. "Removed" has the same meaning with `Tombstone`.Protobuf enum
metapb.NodeState
Enum Constant and Description |
---|
Preparing
Preparing = 0; |
Removed
Removed = 3; |
Removing
Removing = 2; |
Serving
Serving = 1; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
Preparing_VALUE
Preparing = 0; |
static int |
Removed_VALUE
Removed = 3; |
static int |
Removing_VALUE
Removing = 2; |
static int |
Serving_VALUE
Serving = 1; |
Modifier and Type | Method and Description |
---|---|
static Metapb.NodeState |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Metapb.NodeState> |
internalGetValueMap() |
static Metapb.NodeState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Metapb.NodeState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Metapb.NodeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metapb.NodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metapb.NodeState Preparing
Preparing = 0;
public static final Metapb.NodeState Serving
Serving = 1;
public static final Metapb.NodeState Removing
Removing = 2;
public static final Metapb.NodeState Removed
Removed = 3;
public static final Metapb.NodeState UNRECOGNIZED
public static final int Preparing_VALUE
Preparing = 0;
public static final int Serving_VALUE
Serving = 1;
public static final int Removing_VALUE
Removing = 2;
public static final int Removed_VALUE
Removed = 3;
public static Metapb.NodeState[] values()
for (Metapb.NodeState c : Metapb.NodeState.values()) System.out.println(c);
public static Metapb.NodeState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Metapb.NodeState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Metapb.NodeState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Metapb.NodeState> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Metapb.NodeState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.