public class PDMockServer extends PDGrpc.PDImplBase
| Constructor and Description |
|---|
PDMockServer() |
bindServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallocID, askBatchSplit, askSplit, bootstrap, getClusterConfig, getDCLocationInfo, getGCSafePoint, getOperator, getPrevRegion, isBootstrapped, loadGlobalConfig, putClusterConfig, putStore, regionHeartbeat, reportBatchSplit, reportBuckets, reportMinResolvedTS, reportSplit, scatterRegion, splitAndScatterRegions, splitRegions, storeGlobalConfig, storeHeartbeat, syncMaxTS, syncRegions, updateGCSafePoint, updateServiceGCSafePoint, watchGlobalConfigpublic void addGetMembersListener(Function<Pdpb.GetMembersRequest,Pdpb.GetMembersResponse> func)
public void getMembers(Pdpb.GetMembersRequest request, io.grpc.stub.StreamObserver<Pdpb.GetMembersResponse> resp)
public io.grpc.stub.StreamObserver<Pdpb.TsoRequest> tso(io.grpc.stub.StreamObserver<Pdpb.TsoResponse> resp)
public void addGetRegionListener(Function<Pdpb.GetRegionRequest,Pdpb.GetRegionResponse> func)
public void getRegion(Pdpb.GetRegionRequest request, io.grpc.stub.StreamObserver<Pdpb.GetRegionResponse> resp)
public void addGetRegionByIDListener(Function<Pdpb.GetRegionByIDRequest,Pdpb.GetRegionResponse> func)
public void getRegionByID(Pdpb.GetRegionByIDRequest request, io.grpc.stub.StreamObserver<Pdpb.GetRegionResponse> resp)
public void addGetStoreListener(Function<Pdpb.GetStoreRequest,Pdpb.GetStoreResponse> func)
public void getStore(Pdpb.GetStoreRequest request, io.grpc.stub.StreamObserver<Pdpb.GetStoreResponse> resp)
public void addScanRegionsListener(Function<Pdpb.ScanRegionsRequest,Pdpb.ScanRegionsResponse> func)
public void scanRegions(Pdpb.ScanRegionsRequest request, io.grpc.stub.StreamObserver<Pdpb.ScanRegionsResponse> resp)
public void addGetAllStoresListener(Function<Pdpb.GetAllStoresRequest,Pdpb.GetAllStoresResponse> func)
public void getAllStores(Pdpb.GetAllStoresRequest request, io.grpc.stub.StreamObserver<Pdpb.GetAllStoresResponse> resp)
public void start(long clusterId)
throws IOException
IOExceptionpublic void start(long clusterId,
int port)
throws IOException
IOExceptionpublic void stop()
public long getClusterId()
public long getPort()
Copyright © 2025 PingCAP. All rights reserved.