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, setResourceLocalizer
afterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop
protected void onInit() throws java.lang.Exception
LifecycleObjectSupport
InitializingBean
phase. Implementor should
always call super method not to break initialization chain.onInit
in class AbstractLauncher
java.lang.Exception
- exceptionprotected void doStart()
LifecycleObjectSupport
LifecycleObjectSupport.lifecycleLock
.doStart
in class LifecycleObjectSupport
protected void doStop()
LifecycleObjectSupport
LifecycleObjectSupport.lifecycleLock
.doStop
in class LifecycleObjectSupport
public void launchContainer(org.apache.hadoop.yarn.api.records.Container container, java.util.List<java.lang.String> commands)
ContainerLauncher
Container
using given list
of commands.launchContainer
in interface ContainerLauncher
container
- the Container
commands
- the list of commandsprotected void setupLaunchContextTokens(org.apache.hadoop.yarn.api.records.ContainerLaunchContext ctx)
ContainerLaunchContext
.ctx
- the container launch context