类 AsyncDataNodeClientPool
- java.lang.Object
-
- org.apache.iotdb.confignode.client.async.AsyncDataNodeClientPool
-
public class AsyncDataNodeClientPool extends java.lang.ObjectAsynchronously send RPC requests to DataNodes. See mpp.thrift for more details.
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.iotdb.commons.client.async.AsyncDataNodeInternalServiceClientgetAsyncClient(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode)static AsyncDataNodeClientPoolgetInstance()voidresetClient(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint)Always call this interface when a DataNode is restarted or removedvoidsendAsyncRequestToDataNodeWithRetry(AsyncClientHandler<?,?> clientHandler)Send asynchronous requests to the specified DataNodes with default retry numvoidsendAsyncRequestToDataNodeWithRetry(AsyncClientHandler<?,?> clientHandler, int retryNum)
-
-
-
方法详细资料
-
sendAsyncRequestToDataNodeWithRetry
public void sendAsyncRequestToDataNodeWithRetry(AsyncClientHandler<?,?> clientHandler)
Send asynchronous requests to the specified DataNodes with default retry numNotice: The DataNodes that failed to receive the requests will be reconnected
- 参数:
clientHandler-which will also contain the result
-
sendAsyncRequestToDataNodeWithRetry
public void sendAsyncRequestToDataNodeWithRetry(AsyncClientHandler<?,?> clientHandler, int retryNum)
-
resetClient
public void resetClient(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint)
Always call this interface when a DataNode is restarted or removed- 参数:
endPoint- The specific DataNode
-
getAsyncClient
public org.apache.iotdb.commons.client.async.AsyncDataNodeInternalServiceClient getAsyncClient(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode) throws org.apache.iotdb.commons.client.exception.ClientManagerException- 抛出:
org.apache.iotdb.commons.client.exception.ClientManagerException
-
getInstance
public static AsyncDataNodeClientPool getInstance()
-
-