Package io.dingodb.common
Interface Common.StoreOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Common.Store,Common.Store.Builder
- Enclosing class:
- Common
public static interface Common.StoreOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongonly updated by coordinatorlonggetEpoch()only updated by coordinatorlonggetId()only updated by coordinatoronly updated by coordinatorintonly updated by coordinatoronly updated by coordinatorcom.google.protobuf.ByteStringonly updated by coordinatorlongonly updated by coordinatorintint32 leader_num_weight = 20;store can only update this field in the first heartbeatstore can only update this field in the first heartbeatonly updated by coordinatorcom.google.protobuf.ByteStringonly updated by coordinatorstore can only update this field in the first heartbeatstore can only update this field in the first heartbeatgetState()only updated by coordinatorintonly updated by coordinatorstore typeintstore typebooleanstore can only update this field in the first heartbeatbooleanstore can only update this field in the first heartbeatMethods 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
-
getId
long getId()only updated by coordinator
int64 id = 1;- Returns:
- The id.
-
getEpoch
long getEpoch()only updated by coordinator
int64 epoch = 2;- Returns:
- The epoch.
-
getStateValue
int getStateValue()only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Returns:
- The enum numeric value on the wire for state.
-
getState
Common.StoreState getState()only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Returns:
- The state.
-
getInStateValue
int getInStateValue()only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Returns:
- The enum numeric value on the wire for inState.
-
getInState
Common.StoreInState getInState()only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Returns:
- The inState.
-
hasServerLocation
boolean hasServerLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5;- Returns:
- Whether the serverLocation field is set.
-
getServerLocation
Common.Location getServerLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5;- Returns:
- The serverLocation.
-
getServerLocationOrBuilder
Common.LocationOrBuilder getServerLocationOrBuilder()store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
hasRaftLocation
boolean hasRaftLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6;- Returns:
- Whether the raftLocation field is set.
-
getRaftLocation
Common.Location getRaftLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6;- Returns:
- The raftLocation.
-
getRaftLocationOrBuilder
Common.LocationOrBuilder getRaftLocationOrBuilder()store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
getResourceTag
String getResourceTag()only updated by coordinator
string resource_tag = 7;- Returns:
- The resourceTag.
-
getResourceTagBytes
com.google.protobuf.ByteString getResourceTagBytes()only updated by coordinator
string resource_tag = 7;- Returns:
- The bytes for resourceTag.
-
getKeyring
String getKeyring()only updated by coordinator
string keyring = 8;- Returns:
- The keyring.
-
getKeyringBytes
com.google.protobuf.ByteString getKeyringBytes()only updated by coordinator
string keyring = 8;- Returns:
- The bytes for keyring.
-
getCreateTimestamp
long getCreateTimestamp()only updated by coordinator
int64 create_timestamp = 9;- Returns:
- The createTimestamp.
-
getLastSeenTimestamp
long getLastSeenTimestamp()only updated by coordinator
int64 last_seen_timestamp = 10;- Returns:
- The lastSeenTimestamp.
-
getStoreTypeValue
int getStoreTypeValue()store type
.dingodb.pb.common.StoreType store_type = 11;- Returns:
- The enum numeric value on the wire for storeType.
-
getStoreType
Common.StoreType getStoreType()store type
.dingodb.pb.common.StoreType store_type = 11;- Returns:
- The storeType.
-
getLeaderNumWeight
int getLeaderNumWeight()int32 leader_num_weight = 20;- Returns:
- The leaderNumWeight.
-