Class SyncConfigNodeClientPool
java.lang.Object
org.apache.iotdb.confignode.client.sync.SyncConfigNodeClientPool
Synchronously send RPC requests to ConfigNode. See confignode.thrift for more details.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyncConfigNodeClientPoolremoveConfigNode(TConfigNodeLocation configNodeLocation, SyncConfigNodeIServiceClient client) ConfigNode Leader stop any ConfigNode in the cluster.sendSyncRequestToConfigNodeWithRetry(TEndPoint endPoint, Object req, CnToCnNodeRequestType requestType)
-
Method Details
-
sendSyncRequestToConfigNodeWithRetry
public Object sendSyncRequestToConfigNodeWithRetry(TEndPoint endPoint, Object req, CnToCnNodeRequestType requestType) -
removeConfigNode
public TSStatus removeConfigNode(TConfigNodeLocation configNodeLocation, SyncConfigNodeIServiceClient client) throws ClientManagerException, org.apache.thrift.TException, InterruptedException ConfigNode Leader stop any ConfigNode in the cluster.- Parameters:
configNodeLocation- To be removed ConfigNode- Returns:
- SUCCESS_STATUS: remove ConfigNode success, other status remove failed
- Throws:
ClientManagerException- removeConfigNodeorg.apache.thrift.TException- removeConfigNodeInterruptedException- removeConfigNode
-
getInstance
-