Package com.linkedin.venice.D2
Class D2ClientUtils
java.lang.Object
com.linkedin.venice.D2.D2ClientUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.linkedin.r2.message.rest.RestRequest
createD2GetRequest
(String requestPath) static com.linkedin.r2.message.rest.RestRequest
createD2GetRequest
(String requestPath, Map<String, String> headers) static com.linkedin.r2.message.rest.RestRequest
createD2PostRequest
(String requestPath, Map<String, String> headers, byte[] body) static com.linkedin.r2.message.rest.RestResponse
sendD2GetRequest
(String requestPath, com.linkedin.d2.balancer.D2Client client) static void
shutdownClient
(com.linkedin.d2.balancer.D2Client client) static void
shutdownClient
(com.linkedin.d2.balancer.D2Client client, long timeoutInMs) static void
startClient
(com.linkedin.d2.balancer.D2Client client) static void
startClient
(com.linkedin.d2.balancer.D2Client client, long timeoutInMs)
-
Constructor Details
-
D2ClientUtils
public D2ClientUtils()
-
-
Method Details
-
startClient
public static void startClient(com.linkedin.d2.balancer.D2Client client) -
startClient
public static void startClient(com.linkedin.d2.balancer.D2Client client, long timeoutInMs) -
shutdownClient
public static void shutdownClient(com.linkedin.d2.balancer.D2Client client) -
shutdownClient
public static void shutdownClient(com.linkedin.d2.balancer.D2Client client, long timeoutInMs) -
createD2GetRequest
-
createD2GetRequest
-
sendD2GetRequest
public static com.linkedin.r2.message.rest.RestResponse sendD2GetRequest(String requestPath, com.linkedin.d2.balancer.D2Client client) -
createD2PostRequest
-