Class D2ControllerClientFactory
- java.lang.Object
-
- com.linkedin.venice.controllerapi.D2ControllerClientFactory
-
public class D2ControllerClientFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description D2ControllerClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static D2ControllerClient
discoverAndConstructControllerClient(java.lang.String storeName, java.lang.String d2ServiceName, int retryAttempts, com.linkedin.d2.balancer.D2Client d2Client)
static D2ControllerClient
discoverAndConstructControllerClient(java.lang.String storeName, java.lang.String d2ServiceName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory, int retryAttempts)
static D2ControllerClient
getControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client)
static D2ControllerClient
getControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory)
static boolean
release(D2ControllerClient client)
-
-
-
Method Detail
-
getControllerClient
public static D2ControllerClient getControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory)
-
getControllerClient
public static D2ControllerClient getControllerClient(java.lang.String d2ServiceName, java.lang.String clusterName, com.linkedin.d2.balancer.D2Client d2Client)
-
release
public static boolean release(D2ControllerClient client)
-
discoverAndConstructControllerClient
public static D2ControllerClient discoverAndConstructControllerClient(java.lang.String storeName, java.lang.String d2ServiceName, int retryAttempts, com.linkedin.d2.balancer.D2Client d2Client)
-
discoverAndConstructControllerClient
public static D2ControllerClient discoverAndConstructControllerClient(java.lang.String storeName, java.lang.String d2ServiceName, java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactory, int retryAttempts)
-
-