org.apache.hadoop.mapreduce.v2.app.launcher
Class ContainerLauncherImpl
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
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 classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
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 |
launcherPool
protected ThreadPoolExecutor launcherPool
INITIAL_POOL_SIZE
protected static final int INITIAL_POOL_SIZE
- See Also:
- Constant Field Values
eventQueue
protected BlockingQueue<ContainerLauncherEvent> eventQueue
ContainerLauncherImpl
public ContainerLauncherImpl(AppContext context)
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 © 2013 Apache Software Foundation. All Rights Reserved.