@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)
Get the  
ContainerLauncherContext associated with this instance of the container
 launcher, which is used to communicate with the rest of the system | 
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.ServicePluginLifecycleExceptionpublic void start()
           throws Exception
start in interface org.apache.tez.common.ServicePluginLifecycleExceptionpublic void shutdown()
              throws Exception
shutdown in interface org.apache.tez.common.ServicePluginLifecycleExceptionpublic final ContainerLauncherContext getContext()
ContainerLauncherContext associated with this instance of the container
 launcher, which is used to communicate with the rest of the systemContainerLauncherContextpublic abstract void launchContainer(ContainerLaunchRequest launchRequest) throws org.apache.tez.serviceplugins.api.ServicePluginException
ContainerLauncherContext associated with this instance of the container
 launcher, which is used to communicate with the rest of the systemlaunchRequest - the actual launch requestorg.apache.tez.serviceplugins.api.ServicePluginException - when the service runs into a fatal error which it cannot handle.
                               This will cause the app to shutdown.public abstract void stopContainer(ContainerStopRequest stopRequest) throws org.apache.tez.serviceplugins.api.ServicePluginException
stopRequest - the actual stop requestorg.apache.tez.serviceplugins.api.ServicePluginException - when the service runs into a fatal error which it cannot handle.
                               This will cause the app to shutdown.Copyright © 2018 Apache Software Foundation. All rights reserved.