use of io.dingodb.store.row.cmd.pd.GetStoreInfoRequest in project dingo by dingodb.
the class MetadataRpcClient method internalGetStoreInfo.
private void internalGetStoreInfo(final long clusterId, final Endpoint selfEndpoint, final CompletableFuture<Store> future, final int retriesLeft, final Errors lastCause) {
final RetryRunner retryRunner = retryCause -> internalGetStoreInfo(clusterId, selfEndpoint, future, retriesLeft - 1, retryCause);
final FailoverClosure<Store> closure = new FailoverClosureImpl<>(future, retriesLeft, retryRunner);
final GetStoreInfoRequest request = new GetStoreInfoRequest();
request.setClusterId(clusterId);
request.setEndpoint(selfEndpoint);
this.pdRpcService.callPdServerWithRpc(request, closure, lastCause);
}
Aggregations