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(Container container,
List<String> commands)
Launch container
Container using given list
of commands. |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected void |
setupLaunchContextTokens(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 Exception
LifecycleObjectSupportInitializingBean phase. Implementor should
always call super method not to break initialization chain.onInit in class AbstractLauncherException - exceptionprotected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStart in class LifecycleObjectSupportprotected void doStop()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStop in class LifecycleObjectSupportpublic void launchContainer(Container container, List<String> commands)
ContainerLauncherContainer using given list
of commands.launchContainer in interface ContainerLaunchercontainer - the Containercommands - the list of commandsprotected void setupLaunchContextTokens(ContainerLaunchContext ctx)
ContainerLaunchContext.ctx - the container launch context