public static final class Pdpb.RegionHeartbeatResponse extends com.google.protobuf.GeneratedMessageV3 implements Pdpb.RegionHeartbeatResponseOrBuilder
pdpb.RegionHeartbeatResponse
Modifier and Type | Class and Description |
---|---|
static class |
Pdpb.RegionHeartbeatResponse.Builder
Protobuf type
pdpb.RegionHeartbeatResponse |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE_PEER_FIELD_NUMBER |
static int |
CHANGE_PEER_V2_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
MERGE_FIELD_NUMBER |
static int |
REGION_EPOCH_FIELD_NUMBER |
static int |
REGION_ID_FIELD_NUMBER |
static int |
SPLIT_REGION_FIELD_NUMBER |
static int |
TARGET_PEER_FIELD_NUMBER |
static int |
TRANSFER_LEADER_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Pdpb.ChangePeer |
getChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.ChangePeerOrBuilder |
getChangePeerOrBuilder()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.ChangePeerV2 |
getChangePeerV2()
Multiple change peer operations atomically.
|
Pdpb.ChangePeerV2OrBuilder |
getChangePeerV2OrBuilder()
Multiple change peer operations atomically.
|
static Pdpb.RegionHeartbeatResponse |
getDefaultInstance() |
Pdpb.RegionHeartbeatResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Pdpb.ResponseHeader |
getHeader()
.pdpb.ResponseHeader header = 1; |
Pdpb.ResponseHeaderOrBuilder |
getHeaderOrBuilder()
.pdpb.ResponseHeader header = 1; |
Pdpb.Merge |
getMerge()
.pdpb.Merge merge = 7; |
Pdpb.MergeOrBuilder |
getMergeOrBuilder()
.pdpb.Merge merge = 7; |
com.google.protobuf.Parser<Pdpb.RegionHeartbeatResponse> |
getParserForType() |
Metapb.RegionEpoch |
getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
Metapb.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5; |
long |
getRegionId()
ID of the region
|
int |
getSerializedSize() |
Pdpb.SplitRegion |
getSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.SplitRegionOrBuilder |
getSplitRegionOrBuilder()
PD sends split_region to let TiKV split a region into two regions.
|
Metapb.Peer |
getTargetPeer()
Leader of the region at the moment of the corresponding request was made.
|
Metapb.PeerOrBuilder |
getTargetPeerOrBuilder()
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.TransferLeader |
getTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.TransferLeaderOrBuilder |
getTransferLeaderOrBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's.
|
boolean |
hasChangePeerV2()
Multiple change peer operations atomically.
|
int |
hashCode() |
boolean |
hasHeader()
.pdpb.ResponseHeader header = 1; |
boolean |
hasMerge()
.pdpb.Merge merge = 7; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
boolean |
hasSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
|
boolean |
hasTargetPeer()
Leader of the region at the moment of the corresponding request was made.
|
boolean |
hasTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Pdpb.RegionHeartbeatResponse.Builder |
newBuilder() |
static Pdpb.RegionHeartbeatResponse.Builder |
newBuilder(Pdpb.RegionHeartbeatResponse prototype) |
Pdpb.RegionHeartbeatResponse.Builder |
newBuilderForType() |
protected Pdpb.RegionHeartbeatResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Pdpb.RegionHeartbeatResponse |
parseDelimitedFrom(InputStream input) |
static Pdpb.RegionHeartbeatResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(byte[] data) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(ByteBuffer data) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(com.google.protobuf.ByteString data) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(InputStream input) |
static Pdpb.RegionHeartbeatResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Pdpb.RegionHeartbeatResponse> |
parser() |
Pdpb.RegionHeartbeatResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int HEADER_FIELD_NUMBER
public static final int CHANGE_PEER_FIELD_NUMBER
public static final int TRANSFER_LEADER_FIELD_NUMBER
public static final int REGION_ID_FIELD_NUMBER
public static final int REGION_EPOCH_FIELD_NUMBER
public static final int TARGET_PEER_FIELD_NUMBER
public static final int MERGE_FIELD_NUMBER
public static final int SPLIT_REGION_FIELD_NUMBER
public static final int CHANGE_PEER_V2_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasHeader()
.pdpb.ResponseHeader header = 1;
hasHeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ResponseHeader getHeader()
.pdpb.ResponseHeader header = 1;
getHeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder()
.pdpb.ResponseHeader header = 1;
getHeaderOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
hasChangePeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeer getChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
getChangePeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeerOrBuilder getChangePeerOrBuilder()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
getChangePeerOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
hasTransferLeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.TransferLeader getTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
getTransferLeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.TransferLeaderOrBuilder getTransferLeaderOrBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
getTransferLeaderOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public long getRegionId()
ID of the region
uint64 region_id = 4;
getRegionId
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
hasRegionEpoch
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.RegionEpoch getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpoch
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpochOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasTargetPeer()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
hasTargetPeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.Peer getTargetPeer()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
getTargetPeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.PeerOrBuilder getTargetPeerOrBuilder()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
getTargetPeerOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasMerge()
.pdpb.Merge merge = 7;
hasMerge
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.Merge getMerge()
.pdpb.Merge merge = 7;
getMerge
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.MergeOrBuilder getMergeOrBuilder()
.pdpb.Merge merge = 7;
getMergeOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
hasSplitRegion
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.SplitRegion getSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
getSplitRegion
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.SplitRegionOrBuilder getSplitRegionOrBuilder()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
getSplitRegionOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasChangePeerV2()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
hasChangePeerV2
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeerV2 getChangePeerV2()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
getChangePeerV2
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeerV2OrBuilder getChangePeerV2OrBuilder()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
getChangePeerV2OrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Pdpb.RegionHeartbeatResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatResponse parseFrom(InputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Pdpb.RegionHeartbeatResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Pdpb.RegionHeartbeatResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Pdpb.RegionHeartbeatResponse.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Pdpb.RegionHeartbeatResponse.Builder newBuilder()
public static Pdpb.RegionHeartbeatResponse.Builder newBuilder(Pdpb.RegionHeartbeatResponse prototype)
public Pdpb.RegionHeartbeatResponse.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Pdpb.RegionHeartbeatResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Pdpb.RegionHeartbeatResponse getDefaultInstance()
public static com.google.protobuf.Parser<Pdpb.RegionHeartbeatResponse> parser()
public com.google.protobuf.Parser<Pdpb.RegionHeartbeatResponse> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Pdpb.RegionHeartbeatResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.