java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.event.EventHandler<ContainersLauncherEvent>, AbstractContainersLauncherpublic class ContainersLauncher extends org.apache.hadoop.service.AbstractService implements AbstractContainersLauncher
ResourceLocalizationService is started as it depends on creation
of system directories on the local file-system.| Modifier and Type | Field | Description |
|---|---|---|
java.util.concurrent.ExecutorService |
containerLauncher |
|
java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerLaunch> |
running |
| Constructor | Description |
|---|---|
ContainersLauncher() |
|
ContainersLauncher(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
ContainerExecutor exec,
LocalDirsHandlerService dirsHandler,
ContainerManagerImpl containerManager) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
handle(ContainersLauncherEvent event) |
|
void |
init(Context nmContext,
org.apache.hadoop.yarn.event.Dispatcher nmDispatcher,
ContainerExecutor containerExec,
LocalDirsHandlerService nmDirsHandler,
ContainerManagerImpl nmContainerManager) |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@VisibleForTesting public java.util.concurrent.ExecutorService containerLauncher
@VisibleForTesting public final java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerLaunch> running
public ContainersLauncher()
@VisibleForTesting public ContainersLauncher(Context context, org.apache.hadoop.yarn.event.Dispatcher dispatcher, ContainerExecutor exec, LocalDirsHandlerService dirsHandler, ContainerManagerImpl containerManager)
public void init(Context nmContext, org.apache.hadoop.yarn.event.Dispatcher nmDispatcher, ContainerExecutor containerExec, LocalDirsHandlerService nmDirsHandler, ContainerManagerImpl nmContainerManager)
init in interface AbstractContainersLauncherprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic void handle(ContainersLauncherEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainersLauncherEvent>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.