类 SyncDataNodeClientPool


  • public class SyncDataNodeClientPool
    extends java.lang.Object
    Synchronously send RPC requests to DataNodes. See mpp.thrift for more details.
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.apache.iotdb.common.rpc.thrift.TSStatus changeRegionLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionId, org.apache.iotdb.common.rpc.thrift.TEndPoint dataNode, org.apache.iotdb.common.rpc.thrift.TDataNodeLocation newLeaderNode)
      change a region leader from the datanode to other datanode, other datanode should be in same raft group
      static SyncDataNodeClientPool getInstance()  
      org.apache.iotdb.common.rpc.thrift.TSStatus sendSyncRequestToDataNodeWithGivenRetry​(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, java.lang.Object req, DataNodeRequestType requestType, int retryNum)  
      org.apache.iotdb.common.rpc.thrift.TSStatus sendSyncRequestToDataNodeWithRetry​(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, java.lang.Object req, DataNodeRequestType requestType)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • sendSyncRequestToDataNodeWithRetry

        public org.apache.iotdb.common.rpc.thrift.TSStatus sendSyncRequestToDataNodeWithRetry​(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint,
                                                                                              java.lang.Object req,
                                                                                              DataNodeRequestType requestType)
      • sendSyncRequestToDataNodeWithGivenRetry

        public org.apache.iotdb.common.rpc.thrift.TSStatus sendSyncRequestToDataNodeWithGivenRetry​(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint,
                                                                                                   java.lang.Object req,
                                                                                                   DataNodeRequestType requestType,
                                                                                                   int retryNum)
      • changeRegionLeader

        public org.apache.iotdb.common.rpc.thrift.TSStatus changeRegionLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionId,
                                                                              org.apache.iotdb.common.rpc.thrift.TEndPoint dataNode,
                                                                              org.apache.iotdb.common.rpc.thrift.TDataNodeLocation newLeaderNode)
        change a region leader from the datanode to other datanode, other datanode should be in same raft group
        参数:
        regionId - the region which will changer leader
        dataNode - data node server, change regions leader from it
        newLeaderNode - target data node, change regions leader to it
        返回:
        TSStatus