Package com.linkedin.venice.d2
Class D2ClientFactory
- java.lang.Object
-
- com.linkedin.venice.d2.D2ClientFactory
-
public class D2ClientFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static SharedObjectFactory<com.linkedin.d2.balancer.D2Client>
SHARED_OBJECT_FACTORY
-
Constructor Summary
Constructors Constructor Description D2ClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.linkedin.d2.balancer.D2Client
getD2Client(java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactoryOptional)
static void
release(java.lang.String d2ZkHost)
static void
resetUnitTestMode()
static void
setD2Client(java.lang.String d2ZkHost, com.linkedin.d2.balancer.D2Client d2Client)
static void
setUnitTestMode()
-
-
-
Field Detail
-
SHARED_OBJECT_FACTORY
protected static final SharedObjectFactory<com.linkedin.d2.balancer.D2Client> SHARED_OBJECT_FACTORY
-
-
Method Detail
-
setUnitTestMode
public static void setUnitTestMode()
-
resetUnitTestMode
public static void resetUnitTestMode()
-
setD2Client
public static void setD2Client(java.lang.String d2ZkHost, com.linkedin.d2.balancer.D2Client d2Client)
-
getD2Client
public static com.linkedin.d2.balancer.D2Client getD2Client(java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactoryOptional)
-
release
public static void release(java.lang.String d2ZkHost)
-
-