Package com.linkedin.venice.client.store
Class D2ServiceDiscovery
java.lang.Object
com.linkedin.venice.client.store.D2ServiceDiscovery
This class is used to find the proper d2 service name for the given store through default D2 service
d2://VeniceRouter. Then build the transport client based on the d2 service it found.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(D2TransportClient client, String storeName) find
(D2TransportClient client, String storeName, boolean retryOnFailure)
-
Field Details
-
TYPE_D2_SERVICE_DISCOVERY
- See Also:
-
-
Constructor Details
-
D2ServiceDiscovery
public D2ServiceDiscovery() -
D2ServiceDiscovery
-
-
Method Details
-
find
-
find
public D2ServiceDiscoveryResponse find(D2TransportClient client, String storeName, boolean retryOnFailure)
-