org.apache.hadoop.yarn.server.webproxy
Class WebAppProxyServer

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.service.CompositeService
          extended by org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service

public class WebAppProxyServer
extends org.apache.hadoop.service.CompositeService

ProxyServer will sit in between the end user and AppMaster web interfaces.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
static int SHUTDOWN_HOOK_PRIORITY
          Priority of the ResourceManager shutdown hook.
 
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES
 
Constructor Summary
WebAppProxyServer()
           
 
Method Summary
protected  void doSecureLogin(org.apache.hadoop.conf.Configuration conf)
          Log in as the Kerberose principal designated for the proxy
static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
          Retrieve PROXY bind address from configuration
static void main(String[] args)
           
protected  void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
protected static WebAppProxyServer startServer(org.apache.hadoop.conf.Configuration configuration)
          Start proxy server.
 
Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService, serviceStart, serviceStop
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHUTDOWN_HOOK_PRIORITY

public static final int SHUTDOWN_HOOK_PRIORITY
Priority of the ResourceManager shutdown hook.

See Also:
Constant Field Values
Constructor Detail

WebAppProxyServer

public WebAppProxyServer()
Method Detail

serviceInit

protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
Throws:
Exception

doSecureLogin

protected void doSecureLogin(org.apache.hadoop.conf.Configuration conf)
                      throws IOException
Log in as the Kerberose principal designated for the proxy

Parameters:
conf - the configuration holding this information in it.
Throws:
IOException - on any error.

getBindAddress

public static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
Retrieve PROXY bind address from configuration

Parameters:
conf -
Returns:
InetSocketAddress

main

public static void main(String[] args)

startServer

protected static WebAppProxyServer startServer(org.apache.hadoop.conf.Configuration configuration)
                                        throws Exception
Start proxy server.

Returns:
proxy server instance.
Throws:
Exception


Copyright © 2014 Apache Software Foundation. All Rights Reserved.