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, 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 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.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.RequestHeader header = 1;
hasHeader
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.RequestHeader getHeader()
.pdpb.RequestHeader header = 1;
getHeader
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder()
.pdpb.RequestHeader header = 1;
getHeaderOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public boolean hasRegion()
.metapb.Region region = 2;
hasRegion
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Metapb.Region getRegion()
.metapb.Region region = 2;
getRegion
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Metapb.RegionOrBuilder getRegionOrBuilder()
.metapb.Region region = 2;
getRegionOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public boolean hasLeader()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;
hasLeader
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Metapb.Peer getLeader()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;
getLeader
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Metapb.PeerOrBuilder getLeaderOrBuilder()
Leader Peer sending the heartbeat.
.metapb.Peer leader = 3;
getLeaderOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public List<Pdpb.PeerStats> getDownPeersList()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;
getDownPeersList
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public List<? extends Pdpb.PeerStatsOrBuilder> getDownPeersOrBuilderList()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;
getDownPeersOrBuilderList
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public int getDownPeersCount()
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;
getDownPeersCount
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.PeerStats getDownPeers(int index)
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;
getDownPeers
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder(int index)
Leader considers that these peers are down.
repeated .pdpb.PeerStats down_peers = 4;
getDownPeersOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public long getBytesWritten()
Bytes read/written during this period.
uint64 bytes_written = 6;
getBytesWritten
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getBytesRead()
uint64 bytes_read = 7;
getBytesRead
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getKeysWritten()
Keys read/written during this period.
uint64 keys_written = 8;
getKeysWritten
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getKeysRead()
uint64 keys_read = 9;
getKeysRead
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getApproximateSize()
Approximate region size.
uint64 approximate_size = 10;
getApproximateSize
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public boolean hasInterval()
Actually reported time interval
.pdpb.TimeInterval interval = 12;
hasInterval
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.TimeInterval getInterval()
Actually reported time interval
.pdpb.TimeInterval interval = 12;
getInterval
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder()
Actually reported time interval
.pdpb.TimeInterval interval = 12;
getIntervalOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getApproximateKeys()
Approximate number of keys.
uint64 approximate_keys = 13;
getApproximateKeys
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public long getTerm()
Term is the term of raft group.
uint64 term = 14;
getTerm
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public boolean hasReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15;
hasReplicationStatus
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public ReplicationModepb.RegionReplicationStatus getReplicationStatus()
.replication_modepb.RegionReplicationStatus replication_status = 15;
getReplicationStatus
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public ReplicationModepb.RegionReplicationStatusOrBuilder getReplicationStatusOrBuilder()
.replication_modepb.RegionReplicationStatus replication_status = 15;
getReplicationStatusOrBuilder
in interface Pdpb.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
public 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.RegionHeartbeatRequestOrBuilder
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.RegionHeartbeatRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Pdpb.RegionHeartbeatRequest parseFrom(InputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Pdpb.RegionHeartbeatRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Pdpb.RegionHeartbeatRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Pdpb.RegionHeartbeatRequest.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Pdpb.RegionHeartbeatRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Pdpb.RegionHeartbeatRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.