Class ConfigNodeAsyncRequestRPCHandler<Response>
java.lang.Object
org.apache.iotdb.commons.client.request.AsyncRequestRPCHandler<Response,CnToCnNodeRequestType,TConfigNodeLocation>
org.apache.iotdb.confignode.client.async.handlers.rpc.ConfigNodeAsyncRequestRPCHandler<Response>
- All Implemented Interfaces:
org.apache.thrift.async.AsyncMethodCallback<Response>
- Direct Known Subclasses:
ConfigNodeTSStatusRPCHandler,SubmitTestConnectionTaskToConfigNodeRPCHandler
public abstract class ConfigNodeAsyncRequestRPCHandler<Response>
extends AsyncRequestRPCHandler<Response,CnToCnNodeRequestType,TConfigNodeLocation>
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.client.request.AsyncRequestRPCHandler
countDownLatch, formattedTargetLocation, nodeLocationMap, requestId, requestType, responseMap, targetNode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigNodeAsyncRequestRPCHandler(CnToCnNodeRequestType configNodeRequestType, int requestId, TConfigNodeLocation targetNode, Map<Integer, TConfigNodeLocation> integerTConfigNodeLocationMap, Map<Integer, Response> integerResponseMap, CountDownLatch countDownLatch) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigNodeAsyncRequestRPCHandler<?>buildHandler(AsyncRequestContext<?, ?, CnToCnNodeRequestType, TConfigNodeLocation> context, int requestId, TConfigNodeLocation targetConfigNode) protected StringgenerateFormattedTargetLocation(TConfigNodeLocation configNodeLocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.thrift.async.AsyncMethodCallback
onComplete, onError
-
Constructor Details
-
ConfigNodeAsyncRequestRPCHandler
protected ConfigNodeAsyncRequestRPCHandler(CnToCnNodeRequestType configNodeRequestType, int requestId, TConfigNodeLocation targetNode, Map<Integer, TConfigNodeLocation> integerTConfigNodeLocationMap, Map<Integer, Response> integerResponseMap, CountDownLatch countDownLatch)
-
-
Method Details
-
generateFormattedTargetLocation
- Specified by:
generateFormattedTargetLocationin classAsyncRequestRPCHandler<Response,CnToCnNodeRequestType, TConfigNodeLocation>
-
buildHandler
public static ConfigNodeAsyncRequestRPCHandler<?> buildHandler(AsyncRequestContext<?, ?, CnToCnNodeRequestType, TConfigNodeLocation> context, int requestId, TConfigNodeLocation targetConfigNode)
-