Interface ShardReplicaOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ShardReplica, ShardReplica.Builder

    public interface ShardReplicaOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getDmChannelName()
      string dm_channel_name = 3;
      com.google.protobuf.ByteString getDmChannelNameBytes()
      string dm_channel_name = 3;
      String getLeaderAddr()
      IP:port
      com.google.protobuf.ByteString getLeaderAddrBytes()
      IP:port
      long getLeaderID()
      int64 leaderID = 1;
      long getNodeIds​(int index)
      optional, DO NOT save it in meta, set it only for GetReplicas() if with_shard_nodes is true
      int getNodeIdsCount()
      optional, DO NOT save it in meta, set it only for GetReplicas() if with_shard_nodes is true
      List<Long> getNodeIdsList()
      optional, DO NOT save it in meta, set it only for GetReplicas() if with_shard_nodes is true
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getLeaderID

        long getLeaderID()
        int64 leaderID = 1;
        Returns:
        The leaderID.
      • getLeaderAddr

        String getLeaderAddr()
         IP:port
         
        string leader_addr = 2;
        Returns:
        The leaderAddr.
      • getLeaderAddrBytes

        com.google.protobuf.ByteString getLeaderAddrBytes()
         IP:port
         
        string leader_addr = 2;
        Returns:
        The bytes for leaderAddr.
      • getDmChannelName

        String getDmChannelName()
        string dm_channel_name = 3;
        Returns:
        The dmChannelName.
      • getDmChannelNameBytes

        com.google.protobuf.ByteString getDmChannelNameBytes()
        string dm_channel_name = 3;
        Returns:
        The bytes for dmChannelName.
      • getNodeIdsList

        List<Long> getNodeIdsList()
         optional, DO NOT save it in meta, set it only for GetReplicas()
         if with_shard_nodes is true
         
        repeated int64 node_ids = 4;
        Returns:
        A list containing the nodeIds.
      • getNodeIdsCount

        int getNodeIdsCount()
         optional, DO NOT save it in meta, set it only for GetReplicas()
         if with_shard_nodes is true
         
        repeated int64 node_ids = 4;
        Returns:
        The count of nodeIds.
      • getNodeIds

        long getNodeIds​(int index)
         optional, DO NOT save it in meta, set it only for GetReplicas()
         if with_shard_nodes is true
         
        repeated int64 node_ids = 4;
        Parameters:
        index - The index of the element to return.
        Returns:
        The nodeIds at the given index.