Class D2ControllerClientFactory
java.lang.Object
com.linkedin.venice.controllerapi.D2ControllerClientFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic D2ControllerClient
discoverAndConstructControllerClient
(String storeName, String d2ServiceName, int retryAttempts, com.linkedin.d2.balancer.D2Client d2Client) static D2ControllerClient
discoverAndConstructControllerClient
(String storeName, String d2ServiceName, String d2ZkHost, Optional<SSLFactory> sslFactory, int retryAttempts) static D2ControllerClient
getControllerClient
(String d2ServiceName, String clusterName, com.linkedin.d2.balancer.D2Client d2Client) static D2ControllerClient
getControllerClient
(String d2ServiceName, String clusterName, String d2ZkHost, Optional<SSLFactory> sslFactory) static boolean
release
(D2ControllerClient client)
-
Constructor Details
-
D2ControllerClientFactory
public D2ControllerClientFactory()
-
-
Method Details
-
getControllerClient
public static D2ControllerClient getControllerClient(String d2ServiceName, String clusterName, String d2ZkHost, Optional<SSLFactory> sslFactory) -
getControllerClient
public static D2ControllerClient getControllerClient(String d2ServiceName, String clusterName, com.linkedin.d2.balancer.D2Client d2Client) -
release
-
discoverAndConstructControllerClient
public static D2ControllerClient discoverAndConstructControllerClient(String storeName, String d2ServiceName, int retryAttempts, com.linkedin.d2.balancer.D2Client d2Client) -
discoverAndConstructControllerClient
public static D2ControllerClient discoverAndConstructControllerClient(String storeName, String d2ServiceName, String d2ZkHost, Optional<SSLFactory> sslFactory, int retryAttempts)
-