Package com.linkedin.venice.D2
Class D2ClientUtils
- java.lang.Object
-
- com.linkedin.venice.D2.D2ClientUtils
-
public class D2ClientUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description D2ClientUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.linkedin.r2.message.rest.RestRequest
createD2GetRequest(java.lang.String requestPath)
static com.linkedin.r2.message.rest.RestRequest
createD2GetRequest(java.lang.String requestPath, java.util.Map<java.lang.String,java.lang.String> headers)
static com.linkedin.r2.message.rest.RestRequest
createD2PostRequest(java.lang.String requestPath, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body)
static com.linkedin.r2.message.rest.RestResponse
sendD2GetRequest(java.lang.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)
-
-
-
Method Detail
-
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
public static com.linkedin.r2.message.rest.RestRequest createD2GetRequest(java.lang.String requestPath)
-
createD2GetRequest
public static com.linkedin.r2.message.rest.RestRequest createD2GetRequest(java.lang.String requestPath, java.util.Map<java.lang.String,java.lang.String> headers)
-
sendD2GetRequest
public static com.linkedin.r2.message.rest.RestResponse sendD2GetRequest(java.lang.String requestPath, com.linkedin.d2.balancer.D2Client client)
-
createD2PostRequest
public static com.linkedin.r2.message.rest.RestRequest createD2PostRequest(java.lang.String requestPath, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body)
-
-