Class ContainerLauncherImpl
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,ContainerLauncher,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>
public class ContainerLauncherImpl
extends org.apache.hadoop.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.EventTypeNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockingQueue<ContainerLauncherEvent>protected intprotected ThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.EventProcessororg.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.ContainerManagementProtocolProxyDatagetCMProxy(String containerMgrBindAddr, org.apache.hadoop.yarn.api.records.ContainerId containerId) voidhandle(ContainerLauncherEvent event) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods 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
-
Field Details
-
launcherPool
-
initialPoolSize
protected int initialPoolSize -
eventQueue
-
-
Constructor Details
-
ContainerLauncherImpl
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
createEventProcessor
protected org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.EventProcessor createEventProcessor(ContainerLauncherEvent event) -
handle
- Specified by:
handlein interfaceorg.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>
-
getCMProxy
public org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData getCMProxy(String containerMgrBindAddr, org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException - Throws:
IOException
-