Package io.dingodb.coordinator
Class Coordinator.RegionStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.coordinator.Coordinator.RegionStatus
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Coordinator.RegionStatusOrBuilder,Serializable
- Enclosing class:
- Coordinator
public static final class Coordinator.RegionStatus
extends com.google.protobuf.GeneratedMessageV3
implements Coordinator.RegionStatusOrBuilder
Protobuf type
dingodb.pb.coordinator.RegionStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.coordinator.RegionStatusNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongthe create timestamp in ms of regionstatic Coordinator.RegionStatusstatic final com.google.protobuf.Descriptors.DescriptorRegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorintRegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorlongthe last update(heartbeat) timestamp in ms of regioncom.google.protobuf.Parser<Coordinator.RegionStatus>RegionRaftStatus this status describe the data constistency of the raft regionintRegionRaftStatus this status describe the data constistency of the raft regionRegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)intRegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downintReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downintgetState()RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protointRegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protointhashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Coordinator.RegionStatus prototype) protected Coordinator.RegionStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Coordinator.RegionStatusparseDelimitedFrom(InputStream input) static Coordinator.RegionStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.RegionStatusparseFrom(byte[] data) static Coordinator.RegionStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.RegionStatusparseFrom(com.google.protobuf.ByteString data) static Coordinator.RegionStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.RegionStatusparseFrom(com.google.protobuf.CodedInputStream input) static Coordinator.RegionStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.RegionStatusparseFrom(InputStream input) static Coordinator.RegionStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.RegionStatusparseFrom(ByteBuffer data) static Coordinator.RegionStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Coordinator.RegionStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
RAFT_STATUS_FIELD_NUMBER
public static final int RAFT_STATUS_FIELD_NUMBER- See Also:
-
REPLICA_STATUS_FIELD_NUMBER
public static final int REPLICA_STATUS_FIELD_NUMBER- See Also:
-
HEARTBEAT_STATE_FIELD_NUMBER
public static final int HEARTBEAT_STATE_FIELD_NUMBER- See Also:
-
REGION_TYPE_FIELD_NUMBER
public static final int REGION_TYPE_FIELD_NUMBER- See Also:
-
CREATE_TIMESTAMP_FIELD_NUMBER
public static final int CREATE_TIMESTAMP_FIELD_NUMBER- See Also:
-
LAST_UPDATE_TIMESTAMP_FIELD_NUMBER
public static final int LAST_UPDATE_TIMESTAMP_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getStateValue
public int getStateValue()RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Specified by:
getStateValuein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Specified by:
getStatein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The state.
-
getRaftStatusValue
public int getRaftStatusValue()RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Specified by:
getRaftStatusValuein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for raftStatus.
-
getRaftStatus
RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Specified by:
getRaftStatusin interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The raftStatus.
-
getReplicaStatusValue
public int getReplicaStatusValue()ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Specified by:
getReplicaStatusValuein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for replicaStatus.
-
getReplicaStatus
ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Specified by:
getReplicaStatusin interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The replicaStatus.
-
getHeartbeatStateValue
public int getHeartbeatStateValue()RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Specified by:
getHeartbeatStateValuein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for heartbeatState.
-
getHeartbeatState
RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Specified by:
getHeartbeatStatein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The heartbeatState.
-
getRegionTypeValue
public int getRegionTypeValue()RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Specified by:
getRegionTypeValuein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for regionType.
-
getRegionType
RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Specified by:
getRegionTypein interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The regionType.
-
getCreateTimestamp
public long getCreateTimestamp()the create timestamp in ms of region
int64 create_timestamp = 10;- Specified by:
getCreateTimestampin interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The createTimestamp.
-
getLastUpdateTimestamp
public long getLastUpdateTimestamp()the last update(heartbeat) timestamp in ms of region
int64 last_update_timestamp = 11;- Specified by:
getLastUpdateTimestampin interfaceCoordinator.RegionStatusOrBuilder- Returns:
- The lastUpdateTimestamp.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Coordinator.RegionStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Coordinator.RegionStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.RegionStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Coordinator.RegionStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-