Package com.linkedin.venice.client.store
Class D2ServiceDiscovery
- java.lang.Object
-
- com.linkedin.venice.client.store.D2ServiceDiscovery
-
public class D2ServiceDiscovery extends java.lang.Object
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
Fields Modifier and Type Field Description static java.lang.String
TYPE_D2_SERVICE_DISCOVERY
-
Constructor Summary
Constructors Constructor Description D2ServiceDiscovery()
D2ServiceDiscovery(Time time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description D2ServiceDiscoveryResponse
find(D2TransportClient client, java.lang.String storeName)
D2ServiceDiscoveryResponse
find(D2TransportClient client, java.lang.String storeName, boolean retryOnFailure)
-
-
-
Field Detail
-
TYPE_D2_SERVICE_DISCOVERY
public static final java.lang.String TYPE_D2_SERVICE_DISCOVERY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
D2ServiceDiscovery
public D2ServiceDiscovery()
-
D2ServiceDiscovery
public D2ServiceDiscovery(Time time)
-
-
Method Detail
-
find
public D2ServiceDiscoveryResponse find(D2TransportClient client, java.lang.String storeName)
-
find
public D2ServiceDiscoveryResponse find(D2TransportClient client, java.lang.String storeName, boolean retryOnFailure)
-
-