类 AsyncDataNodeClientPool


  • public class AsyncDataNodeClientPool
    extends java.lang.Object
    Asynchronously send RPC requests to DataNodes. See mpp.thrift for more details.
    • 方法详细资料

      • sendAsyncRequestToDataNodeWithRetry

        public void sendAsyncRequestToDataNodeWithRetry​(AsyncClientHandler<?,​?> clientHandler)
        Send asynchronous requests to the specified DataNodes with default retry num

        Notice: 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