org.apache.hadoop.mapreduce.v2.app.launcher
Class ContainerLauncherImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl
All Implemented Interfaces:
ContainerLauncher, org.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>, org.apache.hadoop.yarn.service.Service

public class ContainerLauncherImpl
extends org.apache.hadoop.yarn.service.AbstractService
implements ContainerLauncher

This class is responsible for launching of containers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncher
ContainerLauncher.EventType
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Field Summary
protected  BlockingQueue<ContainerLauncherEvent> eventQueue
           
protected static int INITIAL_POOL_SIZE
           
protected  ThreadPoolExecutor launcherPool
           
 
Fields inherited from interface org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncher
DEFAULT_NM_COMMAND_TIMEOUT, MR_AM_NM_COMMAND_TIMEOUT
 
Constructor Summary
ContainerLauncherImpl(AppContext context)
           
 
Method Summary
protected  org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.EventProcessor createEventProcessor(ContainerLauncherEvent event)
           
protected  org.apache.hadoop.yarn.ipc.YarnRPC createYarnRPC(org.apache.hadoop.conf.Configuration conf)
           
protected  org.apache.hadoop.yarn.api.ContainerManager getCMProxy(org.apache.hadoop.yarn.api.records.ContainerId containerID, String containerManagerBindAddr, org.apache.hadoop.yarn.api.records.ContainerToken containerToken)
           
 void handle(ContainerLauncherEvent event)
           
 void init(org.apache.hadoop.conf.Configuration config)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

launcherPool

protected ThreadPoolExecutor launcherPool

INITIAL_POOL_SIZE

protected static final int INITIAL_POOL_SIZE
See Also:
Constant Field Values

eventQueue

protected BlockingQueue<ContainerLauncherEvent> eventQueue
Constructor Detail

ContainerLauncherImpl

public ContainerLauncherImpl(AppContext context)
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration config)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService

createYarnRPC

protected org.apache.hadoop.yarn.ipc.YarnRPC createYarnRPC(org.apache.hadoop.conf.Configuration conf)

start

public void start()
Specified by:
start in interface org.apache.hadoop.yarn.service.Service
Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService

createEventProcessor

protected org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.EventProcessor createEventProcessor(ContainerLauncherEvent event)

getCMProxy

protected org.apache.hadoop.yarn.api.ContainerManager getCMProxy(org.apache.hadoop.yarn.api.records.ContainerId containerID,
                                                                 String containerManagerBindAddr,
                                                                 org.apache.hadoop.yarn.api.records.ContainerToken containerToken)
                                                          throws IOException
Throws:
IOException

handle

public void handle(ContainerLauncherEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.