Package io.dingodb.coordinator
Interface Coordinator.RegionStatusOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Coordinator.RegionStatus,Coordinator.RegionStatus.Builder
- Enclosing class:
- Coordinator
public static interface Coordinator.RegionStatusOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongthe create timestamp in ms of regionRegionHeartbeatState 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 regionRegionRaftStatus 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 downgetState()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.protoMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStateValue
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;- Returns:
- The enum numeric value on the wire for state.
-
getState
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;- Returns:
- The state.
-
getRaftStatusValue
int getRaftStatusValue()RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Returns:
- The enum numeric value on the wire for raftStatus.
-
getRaftStatus
Common.RegionRaftStatus getRaftStatus()RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Returns:
- The raftStatus.
-
getReplicaStatusValue
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;- Returns:
- The enum numeric value on the wire for replicaStatus.
-
getReplicaStatus
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;- Returns:
- The replicaStatus.
-
getHeartbeatStateValue
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;- Returns:
- The enum numeric value on the wire for heartbeatState.
-
getHeartbeatState
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;- Returns:
- The heartbeatState.
-
getRegionTypeValue
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;- Returns:
- The enum numeric value on the wire for regionType.
-
getRegionType
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;- Returns:
- The regionType.
-
getCreateTimestamp
long getCreateTimestamp()the create timestamp in ms of region
int64 create_timestamp = 10;- Returns:
- The createTimestamp.
-
getLastUpdateTimestamp
long getLastUpdateTimestamp()the last update(heartbeat) timestamp in ms of region
int64 last_update_timestamp = 11;- Returns:
- The lastUpdateTimestamp.
-