org.apache.hadoop.yarn.webapp.util
Class WebAppUtils

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.util.WebAppUtils

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class WebAppUtils
extends Object


Constructor Summary
WebAppUtils()
           
 
Method Summary
static String getNMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)
           
static String getProxyHostAndPort(org.apache.hadoop.conf.Configuration conf)
           
static String getResolvedRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)
           
static String getResolvedRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.http.HttpConfig.Policy httpPolicy)
           
static String getResolvedRMWebAppURLWithScheme(org.apache.hadoop.conf.Configuration conf)
           
static String getRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)
           
static String getRMWebAppURLWithScheme(org.apache.hadoop.conf.Configuration conf)
           
static String getURLWithScheme(String schemePrefix, String url)
          if url has scheme then it will be returned as it is else it will return url with scheme.
static void setNMWebAppHostNameAndPort(org.apache.hadoop.conf.Configuration conf, String hostName, int port)
           
static void setRMWebAppHostnameAndPort(org.apache.hadoop.conf.Configuration conf, String hostname, int port)
           
static void setRMWebAppPort(org.apache.hadoop.conf.Configuration conf, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppUtils

public WebAppUtils()
Method Detail

setRMWebAppPort

public static void setRMWebAppPort(org.apache.hadoop.conf.Configuration conf,
                                   int port)

setRMWebAppHostnameAndPort

public static void setRMWebAppHostnameAndPort(org.apache.hadoop.conf.Configuration conf,
                                              String hostname,
                                              int port)

setNMWebAppHostNameAndPort

public static void setNMWebAppHostNameAndPort(org.apache.hadoop.conf.Configuration conf,
                                              String hostName,
                                              int port)

getRMWebAppURLWithScheme

public static String getRMWebAppURLWithScheme(org.apache.hadoop.conf.Configuration conf)

getRMWebAppURLWithoutScheme

public static String getRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)

getProxyHostAndPort

public static String getProxyHostAndPort(org.apache.hadoop.conf.Configuration conf)

getResolvedRMWebAppURLWithScheme

public static String getResolvedRMWebAppURLWithScheme(org.apache.hadoop.conf.Configuration conf)

getResolvedRMWebAppURLWithoutScheme

public static String getResolvedRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)

getResolvedRMWebAppURLWithoutScheme

public static String getResolvedRMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf,
                                                         org.apache.hadoop.http.HttpConfig.Policy httpPolicy)

getNMWebAppURLWithoutScheme

public static String getNMWebAppURLWithoutScheme(org.apache.hadoop.conf.Configuration conf)

getURLWithScheme

public static String getURLWithScheme(String schemePrefix,
                                      String url)
if url has scheme then it will be returned as it is else it will return url with scheme.

Parameters:
schemePrefix - eg. http:// or https://
url -
Returns:
url with scheme


Copyright © 2014 Apache Software Foundation. All Rights Reserved.