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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type dingodb.pb.coordinator.RegionStatus

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    the create timestamp in ms of region
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
    int
    RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
    long
    the last update(heartbeat) timestamp in ms of region
    com.google.protobuf.Parser<Coordinator.RegionStatus>
     
    RegionRaftStatus this status describe the data constistency of the raft region
    int
    RegionRaftStatus this status describe the data constistency of the raft region
    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)
    int
    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)
    ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
    int
    ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
    int
     
    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
    int
    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
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Coordinator.RegionStatus>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      getStateValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public Common.RegionState 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:
      getState in interface Coordinator.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:
      getRaftStatusValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for raftStatus.
    • getRaftStatus

      public Common.RegionRaftStatus getRaftStatus()
       RegionRaftStatus
       this status describe the data constistency of the raft region
       
      .dingodb.pb.common.RegionRaftStatus raft_status = 2;
      Specified by:
      getRaftStatus in interface Coordinator.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:
      getReplicaStatusValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for replicaStatus.
    • getReplicaStatus

      public Common.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:
      getReplicaStatus in interface Coordinator.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:
      getHeartbeatStateValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for heartbeatState.
    • getHeartbeatState

      public Common.RegionHeartbeatState 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:
      getHeartbeatState in interface Coordinator.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:
      getRegionTypeValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for regionType.
    • getRegionType

      public Common.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:
      getRegionType in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The regionType.
    • getCreateTimestamp

      public long getCreateTimestamp()
       the create timestamp in ms of region
       
      int64 create_timestamp = 10;
      Specified by:
      getCreateTimestamp in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The createTimestamp.
    • getLastUpdateTimestamp

      public long getLastUpdateTimestamp()
       the last update(heartbeat) timestamp in ms of region
       
      int64 last_update_timestamp = 11;
      Specified by:
      getLastUpdateTimestamp in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The lastUpdateTimestamp.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Coordinator.RegionStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Coordinator.RegionStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Coordinator.RegionStatus parseDelimitedFrom(InputStream input) throws IOException
      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

      public Coordinator.RegionStatus.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Coordinator.RegionStatus.Builder newBuilder()
    • newBuilder

      public static Coordinator.RegionStatus.Builder newBuilder(Coordinator.RegionStatus prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Coordinator.RegionStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Coordinator.RegionStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Coordinator.RegionStatus> parser()
    • getParserForType

      public com.google.protobuf.Parser<Coordinator.RegionStatus> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Coordinator.RegionStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder