类 AbstractAsyncRPCHandler<T>
- java.lang.Object
-
- org.apache.iotdb.confignode.client.async.handlers.rpc.AbstractAsyncRPCHandler<T>
-
- 所有已实现的接口:
org.apache.thrift.async.AsyncMethodCallback<T>
public abstract class AbstractAsyncRPCHandler<T> extends java.lang.Object implements org.apache.thrift.async.AsyncMethodCallback<T>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected java.util.concurrent.CountDownLatchcountDownLatchprotected java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TDataNodeLocation>dataNodeLocationMapMap key: The indices of asynchronous RPC requestsprotected java.lang.StringformattedTargetLocationprotected intrequestIdprotected DataNodeRequestTyperequestTypeprotected java.util.Map<java.lang.Integer,T>responseMapMap key: The indices(targetDataNode's ID) of asynchronous RPC requestsprotected org.apache.iotdb.common.rpc.thrift.TDataNodeLocationtargetDataNode
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractAsyncRPCHandler(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)
-
-
-
字段详细资料
-
requestType
protected final DataNodeRequestType requestType
-
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 requestsMap 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 requestsMap 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)
-
-