Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • D2ClientUtils

        public D2ClientUtils()
    • 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)