Package io.dingodb.meta
Class Meta.RegionStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.meta.Meta.RegionStatus
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.RegionStatusOrBuilder,Serializable
- Enclosing class:
- Meta
public static final class Meta.RegionStatus
extends com.google.protobuf.GeneratedMessageV3
implements Meta.RegionStatusOrBuilder
Protobuf type
dingodb.pb.meta.RegionStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.meta.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 Meta.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<Meta.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 booleanstatic Meta.RegionStatus.Builderstatic Meta.RegionStatus.BuildernewBuilder(Meta.RegionStatus prototype) protected Meta.RegionStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Meta.RegionStatusparseDelimitedFrom(InputStream input) static Meta.RegionStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RegionStatusparseFrom(byte[] data) static Meta.RegionStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RegionStatusparseFrom(com.google.protobuf.ByteString data) static Meta.RegionStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RegionStatusparseFrom(com.google.protobuf.CodedInputStream input) static Meta.RegionStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RegionStatusparseFrom(InputStream input) static Meta.RegionStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RegionStatusparseFrom(ByteBuffer data) static Meta.RegionStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Meta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.RegionStatusOrBuilder- Returns:
- The regionType.
-
getCreateTimestamp
public long getCreateTimestamp()the create timestamp in ms of region
int64 create_timestamp = 10;- Specified by:
getCreateTimestampin interfaceMeta.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 interfaceMeta.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 Meta.RegionStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RegionStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RegionStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.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 Meta.RegionStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.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 Meta.RegionStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Meta.RegionStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.RegionStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.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 Meta.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
-