Class WebServiceClient

java.lang.Object
org.apache.hadoop.yarn.webapp.util.WebServiceClient

public class WebServiceClient extends Object
Utility for handling Web client.
  • Constructor Details

    • WebServiceClient

      public WebServiceClient()
  • Method Details

    • initialize

      public static void initialize(org.apache.hadoop.conf.Configuration conf) throws Exception
      Construct a new WebServiceClient based on the configuration. It will try to load SSL certificates when it is specified.
      Parameters:
      conf - configuration.
      Throws:
      Exception - exception occur.
    • getWebServiceClient

      public static WebServiceClient getWebServiceClient()
    • createClient

      public javax.ws.rs.client.Client createClient()
      Create a client based on http conf.
      Returns:
      Client
    • getHttpURLConnectionFactory

      @VisibleForTesting protected org.glassfish.jersey.client.HttpUrlConnectorProvider getHttpURLConnectionFactory()
    • destroy

      public static void destroy()