public static enum RaftCmdpb.AdminCmdType extends Enum<RaftCmdpb.AdminCmdType> implements com.google.protobuf.ProtocolMessageEnum
raft_cmdpb.AdminCmdType| 枚举常量和说明 |
|---|
BatchSplit
BatchSplit = 10; |
ChangePeer
ChangePeer = 1; |
ChangePeerV2
ChangePeerV2 = 11; |
CommitMerge
CommitMerge = 8; |
CompactLog
CompactLog = 3; |
ComputeHash
ComputeHash = 5; |
InvalidAdmin
InvalidAdmin = 0; |
PrepareMerge
PrepareMerge = 7; |
RollbackMerge
RollbackMerge = 9; |
Split
已过时。
|
TransferLeader
TransferLeader = 4; |
UNRECOGNIZED |
VerifyHash
VerifyHash = 6; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BatchSplit_VALUE
BatchSplit = 10; |
static int |
ChangePeer_VALUE
ChangePeer = 1; |
static int |
ChangePeerV2_VALUE
ChangePeerV2 = 11; |
static int |
CommitMerge_VALUE
CommitMerge = 8; |
static int |
CompactLog_VALUE
CompactLog = 3; |
static int |
ComputeHash_VALUE
ComputeHash = 5; |
static int |
InvalidAdmin_VALUE
InvalidAdmin = 0; |
static int |
PrepareMerge_VALUE
PrepareMerge = 7; |
static int |
RollbackMerge_VALUE
RollbackMerge = 9; |
static int |
Split_VALUE
Use `BatchSplit` instead.
|
static int |
TransferLeader_VALUE
TransferLeader = 4; |
static int |
VerifyHash_VALUE
VerifyHash = 6; |
| 限定符和类型 | 方法和说明 |
|---|---|
static RaftCmdpb.AdminCmdType |
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<RaftCmdpb.AdminCmdType> |
internalGetValueMap() |
static RaftCmdpb.AdminCmdType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RaftCmdpb.AdminCmdType |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static RaftCmdpb.AdminCmdType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RaftCmdpb.AdminCmdType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RaftCmdpb.AdminCmdType InvalidAdmin
InvalidAdmin = 0;public static final RaftCmdpb.AdminCmdType ChangePeer
ChangePeer = 1;@Deprecated public static final RaftCmdpb.AdminCmdType Split
Use `BatchSplit` instead.
Split = 2 [deprecated = true];public static final RaftCmdpb.AdminCmdType CompactLog
CompactLog = 3;public static final RaftCmdpb.AdminCmdType TransferLeader
TransferLeader = 4;public static final RaftCmdpb.AdminCmdType ComputeHash
ComputeHash = 5;public static final RaftCmdpb.AdminCmdType VerifyHash
VerifyHash = 6;public static final RaftCmdpb.AdminCmdType PrepareMerge
PrepareMerge = 7;public static final RaftCmdpb.AdminCmdType CommitMerge
CommitMerge = 8;public static final RaftCmdpb.AdminCmdType RollbackMerge
RollbackMerge = 9;public static final RaftCmdpb.AdminCmdType BatchSplit
BatchSplit = 10;public static final RaftCmdpb.AdminCmdType ChangePeerV2
ChangePeerV2 = 11;public static final RaftCmdpb.AdminCmdType UNRECOGNIZED
public static final int InvalidAdmin_VALUE
InvalidAdmin = 0;public static final int ChangePeer_VALUE
ChangePeer = 1;public static final int Split_VALUE
Use `BatchSplit` instead.
Split = 2 [deprecated = true];public static final int CompactLog_VALUE
CompactLog = 3;public static final int TransferLeader_VALUE
TransferLeader = 4;public static final int ComputeHash_VALUE
ComputeHash = 5;public static final int VerifyHash_VALUE
VerifyHash = 6;public static final int PrepareMerge_VALUE
PrepareMerge = 7;public static final int CommitMerge_VALUE
CommitMerge = 8;public static final int RollbackMerge_VALUE
RollbackMerge = 9;public static final int BatchSplit_VALUE
BatchSplit = 10;public static final int ChangePeerV2_VALUE
ChangePeerV2 = 11;public static RaftCmdpb.AdminCmdType[] values()
for (RaftCmdpb.AdminCmdType c : RaftCmdpb.AdminCmdType.values()) System.out.println(c);
public static RaftCmdpb.AdminCmdType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static RaftCmdpb.AdminCmdType valueOf(int value)
forNumber(int) instead.public static RaftCmdpb.AdminCmdType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RaftCmdpb.AdminCmdType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RaftCmdpb.AdminCmdType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.