public class DefaultContainerLauncher extends AbstractLauncher implements ContainerLauncher
AbstractLauncher.ContainerLauncherInterceptorList| Constructor and Description |
|---|
DefaultContainerLauncher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Subclasses may implement this method with the start behavior.
|
protected void |
doStop()
Subclasses may implement this method with the stop behavior.
|
void |
launchContainer(org.apache.hadoop.yarn.api.records.Container container,
java.util.List<java.lang.String> commands)
Launch container
Container using given list
of commands. |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected void |
setupLaunchContextTokens(org.apache.hadoop.yarn.api.records.ContainerLaunchContext ctx)
Setup tokens for
ContainerLaunchContext. |
addInterceptor, getCmTemplate, getConfiguration, getEnvironment, getInterceptors, getResourceLocalizer, setConfiguration, setEnvironment, setInterceptors, setResourceLocalizerafterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stopprotected void onInit()
throws java.lang.Exception
LifecycleObjectSupportInitializingBean phase. Implementor should
always call super method not to break initialization chain.onInit in class AbstractLauncherjava.lang.Exception - exceptionprotected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStart in class LifecycleObjectSupportprotected void doStop()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStop in class LifecycleObjectSupportpublic void launchContainer(org.apache.hadoop.yarn.api.records.Container container,
java.util.List<java.lang.String> commands)
ContainerLauncherContainer using given list
of commands.launchContainer in interface ContainerLaunchercontainer - the Containercommands - the list of commandsprotected void setupLaunchContextTokens(org.apache.hadoop.yarn.api.records.ContainerLaunchContext ctx)
ContainerLaunchContext.ctx - the container launch context