Class D2ClientUtils

java.lang.Object
com.linkedin.venice.D2.D2ClientUtils

public class D2ClientUtils extends Object
  • 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

      public static com.linkedin.r2.message.rest.RestRequest createD2GetRequest(String requestPath)
    • createD2GetRequest

      public static com.linkedin.r2.message.rest.RestRequest createD2GetRequest(String requestPath, Map<String,String> headers)
    • sendD2GetRequest

      public static com.linkedin.r2.message.rest.RestResponse sendD2GetRequest(String requestPath, com.linkedin.d2.balancer.D2Client client)
    • createD2PostRequest

      public static com.linkedin.r2.message.rest.RestRequest createD2PostRequest(String requestPath, Map<String,String> headers, byte[] body)