public static final class Pdpb.RegionHeartbeatRequest extends com.google.protobuf.GeneratedMessageV3 implements Pdpb.RegionHeartbeatRequestOrBuilder
pdpb.RegionHeartbeatRequest| Modifier and Type | Class and Description |
|---|---|
static class |
Pdpb.RegionHeartbeatRequest.Builder
Protobuf type
pdpb.RegionHeartbeatRequest |
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 |
APPROXIMATE_KEYS_FIELD_NUMBER |
static int |
APPROXIMATE_SIZE_FIELD_NUMBER |
static int |
BYTES_READ_FIELD_NUMBER |
static int |
BYTES_WRITTEN_FIELD_NUMBER |
static int |
CPU_USAGE_FIELD_NUMBER |
static int |
DOWN_PEERS_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
INTERVAL_FIELD_NUMBER |
static int |
KEYS_READ_FIELD_NUMBER |
static int |
KEYS_WRITTEN_FIELD_NUMBER |
static int |
LEADER_FIELD_NUMBER |
static int |
PENDING_PEERS_FIELD_NUMBER |
static int |
QUERY_STATS_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
REPLICATION_STATUS_FIELD_NUMBER |
static int |
TERM_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getApproximateKeys()
Approximate number of keys.
|
long |
getApproximateSize()
Approximate region size.
|
long |
getBytesRead()
uint64 bytes_read = 7; |
long |
getBytesWritten()
Bytes read/written during this period.
|
long |
getCpuUsage()
cpu_usage is the CPU time usage of the leader region since the last heartbeat,
which is calculated by cpu_time_delta/heartbeat_reported_interval.
|
static Pdpb.RegionHeartbeatRequest |
getDefaultInstance() |
Pdpb.RegionHeartbeatRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Pdpb.PeerStats |
getDownPeers(int index)
Leader considers that these peers are down.
|
int |
getDownPeersCount()
Leader considers that these peers are down.
|
List<Pdpb.PeerStats> |
getDownPeersList()
Leader considers that these peers are down.
|
Pdpb.PeerStatsOrBuilder |
getDownPeersOrBuilder(int index)
Leader considers that these peers are down.
|
List<? extends Pdpb.PeerStatsOrBuilder> |
getDownPeersOrBuilderList()
Leader considers that these peers are down.
|
Pdpb.RequestHeader |
getHeader()
.pdpb.RequestHeader header = 1; |
Pdpb.RequestHeaderOrBuilder |
getHeaderOrBuilder()
.pdpb.RequestHeader header = 1; |
Pdpb.TimeInterval |
getInterval()
Actually reported time interval
|
Pdpb.TimeIntervalOrBuilder |
getIntervalOrBuilder()
Actually reported time interval
|
long |
getKeysRead()
uint64 keys_read = 9; |
long |
getKeysWritten()
Keys read/written during this period.
|
Metapb.Peer |
getLeader()
Leader Peer sending the heartbeat.
|
Metapb.PeerOrBuilder |
getLeaderOrBuilder()
Leader Peer sending the heartbeat.
|
com.google.protobuf.Parser<Pdpb.RegionHeartbeatRequest> |
getParserForType() |
Metapb.Peer |
getPendingPeers(int index)
Pending peers are the peers that the leader can't consider as
working followers.
|
int |
getPendingPeersCount()
Pending peers are the peers that the leader can't consider as
working followers.
|
List<Metapb.Peer> |
getPendingPeersList()
Pending peers are the peers that the leader can't consider as
working followers.
|
Metapb.PeerOrBuilder |
getPendingPeersOrBuilder(int index)
Pending peers are the peers that the leader can't consider as
working followers.
|
List<? extends Metapb.PeerOrBuilder> |
getPendingPeersOrBuilderList()
Pending peers are the peers that the leader can't consider as
working followers.
|
Pdpb.QueryStats |
getQueryStats()
QueryStats reported write query stats, and there are read query stats in store heartbeat
|
Pdpb.QueryStatsOrBuilder |
getQueryStatsOrBuilder()
QueryStats reported write query stats, and there are read query stats in store heartbeat
|
Metapb.Region |
getRegion()
.metapb.Region region = 2; |
Metapb.RegionOrBuilder |
getRegionOrBuilder()
.metapb.Region region = 2; |
ReplicationModepb.RegionReplicationStatus |
getReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15; |
ReplicationModepb.RegionReplicationStatusOrBuilder |
getReplicationStatusOrBuilder()
.replication_modepb.RegionReplicationStatus replication_status = 15; |
int |
getSerializedSize() |
long |
getTerm()
Term is the term of raft group.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasHeader()
.pdpb.RequestHeader header = 1; |
boolean |
hasInterval()
Actually reported time interval
|
boolean |
hasLeader()
Leader Peer sending the heartbeat.
|
boolean |
hasQueryStats()
QueryStats reported write query stats, and there are read query stats in store heartbeat
|
boolean |
hasRegion()
.metapb.Region region = 2; |
boolean |
hasReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Pdpb.RegionHeartbeatRequest.Builder |
newBuilder() |
static Pdpb.RegionHeartbeatRequest.Builder |
newBuilder(Pdpb.RegionHeartbeatRequest prototype) |
Pdpb.RegionHeartbeatRequest.Builder |
newBuilderForType() |
protected Pdpb.RegionHeartbeatRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Pdpb.RegionHeartbeatRequest |
parseDelimitedFrom(InputStream input) |
static Pdpb.RegionHeartbeatRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(byte[] data) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(ByteBuffer data) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(com.google.protobuf.ByteString data) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(InputStream input) |
static Pdpb.RegionHeartbeatRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Pdpb.RegionHeartbeatRequest> |
parser() |
Pdpb.RegionHeartbeatRequest.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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HEADER_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int LEADER_FIELD_NUMBER
public static final int DOWN_PEERS_FIELD_NUMBER
public static final int PENDING_PEERS_FIELD_NUMBER
public static final int BYTES_WRITTEN_FIELD_NUMBER
public static final int BYTES_READ_FIELD_NUMBER
public static final int KEYS_WRITTEN_FIELD_NUMBER
public static final int KEYS_READ_FIELD_NUMBER
public static final int APPROXIMATE_SIZE_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER
public static final int APPROXIMATE_KEYS_FIELD_NUMBER
public static final int TERM_FIELD_NUMBER
public static final int REPLICATION_STATUS_FIELD_NUMBER
public static final int QUERY_STATS_FIELD_NUMBER
public static final int CPU_USAGE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasHeader()
.pdpb.RequestHeader header = 1;hasHeader in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.RequestHeader getHeader()
.pdpb.RequestHeader header = 1;getHeader in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder()
.pdpb.RequestHeader header = 1;getHeaderOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic boolean hasRegion()
.metapb.Region region = 2;hasRegion in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.Region getRegion()
.metapb.Region region = 2;getRegion in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.RegionOrBuilder getRegionOrBuilder()
.metapb.Region region = 2;getRegionOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic boolean hasLeader()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;hasLeader in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.Peer getLeader()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;getLeader in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.PeerOrBuilder getLeaderOrBuilder()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;getLeaderOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic List<Pdpb.PeerStats> getDownPeersList()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;getDownPeersList in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic List<? extends Pdpb.PeerStatsOrBuilder> getDownPeersOrBuilderList()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;getDownPeersOrBuilderList in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic int getDownPeersCount()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;getDownPeersCount in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.PeerStats getDownPeers(int index)
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;getDownPeers in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder(int index)
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;getDownPeersOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic List<Metapb.Peer> getPendingPeersList()
Pending peers are the peers that the leader can't consider as working followers.
repeated .metapb.Peer pending_peers = 5;getPendingPeersList in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic List<? extends Metapb.PeerOrBuilder> getPendingPeersOrBuilderList()
Pending peers are the peers that the leader can't consider as working followers.
repeated .metapb.Peer pending_peers = 5;getPendingPeersOrBuilderList in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic int getPendingPeersCount()
Pending peers are the peers that the leader can't consider as working followers.
repeated .metapb.Peer pending_peers = 5;getPendingPeersCount in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.Peer getPendingPeers(int index)
Pending peers are the peers that the leader can't consider as working followers.
repeated .metapb.Peer pending_peers = 5;getPendingPeers in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Metapb.PeerOrBuilder getPendingPeersOrBuilder(int index)
Pending peers are the peers that the leader can't consider as working followers.
repeated .metapb.Peer pending_peers = 5;getPendingPeersOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getBytesWritten()
Bytes read/written during this period.
uint64 bytes_written = 6;getBytesWritten in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getBytesRead()
uint64 bytes_read = 7;getBytesRead in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getKeysWritten()
Keys read/written during this period.
uint64 keys_written = 8;getKeysWritten in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getKeysRead()
uint64 keys_read = 9;getKeysRead in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getApproximateSize()
Approximate region size.
uint64 approximate_size = 10;getApproximateSize in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic boolean hasInterval()
Actually reported time interval
.pdpb.TimeInterval interval = 12;hasInterval in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.TimeInterval getInterval()
Actually reported time interval
.pdpb.TimeInterval interval = 12;getInterval in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder()
Actually reported time interval
.pdpb.TimeInterval interval = 12;getIntervalOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getApproximateKeys()
Approximate number of keys.
uint64 approximate_keys = 13;getApproximateKeys in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getTerm()
Term is the term of raft group.
uint64 term = 14;getTerm in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic boolean hasReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15;hasReplicationStatus in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic ReplicationModepb.RegionReplicationStatus getReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15;getReplicationStatus in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic ReplicationModepb.RegionReplicationStatusOrBuilder getReplicationStatusOrBuilder()
.replication_modepb.RegionReplicationStatus replication_status = 15;getReplicationStatusOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic boolean hasQueryStats()
QueryStats reported write query stats, and there are read query stats in store heartbeat
.pdpb.QueryStats query_stats = 16;hasQueryStats in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.QueryStats getQueryStats()
QueryStats reported write query stats, and there are read query stats in store heartbeat
.pdpb.QueryStats query_stats = 16;getQueryStats in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic Pdpb.QueryStatsOrBuilder getQueryStatsOrBuilder()
QueryStats reported write query stats, and there are read query stats in store heartbeat
.pdpb.QueryStats query_stats = 16;getQueryStatsOrBuilder in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic long getCpuUsage()
cpu_usage is the CPU time usage of the leader region since the last heartbeat, which is calculated by cpu_time_delta/heartbeat_reported_interval.
uint64 cpu_usage = 17;getCpuUsage in interface Pdpb.RegionHeartbeatRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Pdpb.RegionHeartbeatRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Pdpb.RegionHeartbeatRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Pdpb.RegionHeartbeatRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Pdpb.RegionHeartbeatRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Pdpb.RegionHeartbeatRequest.Builder newBuilder()
public static Pdpb.RegionHeartbeatRequest.Builder newBuilder(Pdpb.RegionHeartbeatRequest prototype)
public Pdpb.RegionHeartbeatRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Pdpb.RegionHeartbeatRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Pdpb.RegionHeartbeatRequest getDefaultInstance()
public static com.google.protobuf.Parser<Pdpb.RegionHeartbeatRequest> parser()
public com.google.protobuf.Parser<Pdpb.RegionHeartbeatRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Pdpb.RegionHeartbeatRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 PingCAP. All rights reserved.