@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ContainerLauncher extends Object implements org.apache.tez.common.ServicePluginLifecycle
Constructor and Description |
---|
ContainerLauncher(ContainerLauncherContext containerLauncherContext) |
Modifier and Type | Method and Description |
---|---|
ContainerLauncherContext |
getContext()
Get the
ContainerLauncherContext associated with this instance of the container
launcher, which is used to communicate with the rest of the system |
void |
initialize()
An entry point for initialization.
|
abstract void |
launchContainer(ContainerLaunchRequest launchRequest)
A request to launch the specified container
|
void |
shutdown()
Stop the service.
|
void |
start()
An entry point for starting the service.
|
abstract void |
stopContainer(ContainerStopRequest stopRequest)
A request to stop a specific container
|
public ContainerLauncher(ContainerLauncherContext containerLauncherContext)
public void initialize() throws Exception
initialize
in interface org.apache.tez.common.ServicePluginLifecycle
Exception
public void start() throws Exception
start
in interface org.apache.tez.common.ServicePluginLifecycle
Exception
public void shutdown() throws Exception
shutdown
in interface org.apache.tez.common.ServicePluginLifecycle
Exception
public final ContainerLauncherContext getContext()
ContainerLauncherContext
associated with this instance of the container
launcher, which is used to communicate with the rest of the systemContainerLauncherContext
public abstract void launchContainer(ContainerLaunchRequest launchRequest)
launchRequest
- the actual launch requestpublic abstract void stopContainer(ContainerStopRequest stopRequest)
stopRequest
- the actual stop requestCopyright © 2015 Apache Software Foundation. All rights reserved.