@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ContainerLauncher extends Object implements 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 ServicePluginLifecycleExceptionpublic void start()
throws Exception
start in interface ServicePluginLifecycleExceptionpublic void shutdown()
throws Exception
shutdown in interface 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 ServicePluginException
ContainerLauncherContext associated with this instance of the container
launcher, which is used to communicate with the rest of the systemlaunchRequest - the actual launch requestServicePluginException - 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 ServicePluginException
stopRequest - the actual stop requestServicePluginException - when the service runs into a fatal error which it cannot handle.
This will cause the app to shutdown.Copyright © 2016 Apache Software Foundation. All rights reserved.