类 AbstractAsyncRPCHandler<T>

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected java.util.concurrent.CountDownLatch countDownLatch  
      protected java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap
      Map key: The indices of asynchronous RPC requests
      protected java.lang.String formattedTargetLocation  
      protected int requestId  
      protected DataNodeRequestType requestType  
      protected java.util.Map<java.lang.Integer,​T> responseMap
      Map key: The indices(targetDataNode's ID) of asynchronous RPC requests
      protected org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode  
    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected AbstractAsyncRPCHandler​(DataNodeRequestType requestType, int requestId, org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode, java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap, java.util.Map<java.lang.Integer,​T> responseMap, java.util.concurrent.CountDownLatch countDownLatch)  
    • 方法概要

      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.apache.thrift.async.AsyncMethodCallback

        onComplete, onError
    • 字段详细资料

      • requestId

        protected final int requestId
      • targetDataNode

        protected final org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode
      • dataNodeLocationMap

        protected final java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap
        Map key: The indices of asynchronous RPC requests

        Map value: The target DataNodes of corresponding indices

        All kinds of AsyncHandler will remove its targetDataNode from the dataNodeLocationMap only if its corresponding RPC request success

      • responseMap

        protected final java.util.Map<java.lang.Integer,​T> responseMap
        Map key: The indices(targetDataNode's ID) of asynchronous RPC requests

        Map value: The response of corresponding indices

        All kinds of AsyncHandler will add response to the responseMap after its corresponding RPC request finished

      • countDownLatch

        protected final java.util.concurrent.CountDownLatch countDownLatch
      • formattedTargetLocation

        protected final java.lang.String formattedTargetLocation
    • 构造器详细资料

      • AbstractAsyncRPCHandler

        protected AbstractAsyncRPCHandler​(DataNodeRequestType requestType,
                                          int requestId,
                                          org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode,
                                          java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap,
                                          java.util.Map<java.lang.Integer,​T> responseMap,
                                          java.util.concurrent.CountDownLatch countDownLatch)