类 SyncDataNodeClientPool
- java.lang.Object
-
- org.apache.iotdb.confignode.client.sync.SyncDataNodeClientPool
-
public class SyncDataNodeClientPool extends java.lang.ObjectSynchronously send RPC requests to DataNodes. See mpp.thrift for more details.
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.iotdb.common.rpc.thrift.TSStatuschangeRegionLeader(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 groupstatic SyncDataNodeClientPoolgetInstance()org.apache.iotdb.common.rpc.thrift.TSStatussendSyncRequestToDataNodeWithGivenRetry(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, java.lang.Object req, DataNodeRequestType requestType, int retryNum)org.apache.iotdb.common.rpc.thrift.TSStatussendSyncRequestToDataNodeWithRetry(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, java.lang.Object req, DataNodeRequestType requestType)
-
-
-
方法详细资料
-
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 leaderdataNode- data node server, change regions leader from itnewLeaderNode- target data node, change regions leader to it- 返回:
- TSStatus
-
getInstance
public static SyncDataNodeClientPool getInstance()
-
-