@InterfaceAudience.Private
 @InterfaceStability.Unstable
public interface ContainerRuntime
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.hdfs.protocol.datatransfer.IOStreamPair | execContainer(ContainerExecContext ctx)Run a program in container. | 
| String | getExposedPorts(Container container)Return the exposed ports of the container. | 
| String[] | getIpAndHost(Container container)Return the host and ip of the container. | 
| void | launchContainer(ContainerRuntimeContext ctx)Launch a container. | 
| void | prepareContainer(ContainerRuntimeContext ctx)Prepare a container to be ready for launch. | 
| void | reapContainer(ContainerRuntimeContext ctx)Perform any container cleanup that may be required. | 
| void | relaunchContainer(ContainerRuntimeContext ctx)Relaunch a container. | 
| void | signalContainer(ContainerRuntimeContext ctx)Signal a container. | 
void prepareContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx - the ContainerRuntimeContextContainerExecutionException - if an error occurs while preparing
 the containervoid launchContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx - the ContainerRuntimeContextContainerExecutionException - if an error occurs while launching
 the containervoid relaunchContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx - the ContainerRuntimeContextContainerExecutionException - if an error occurs while relaunching
 the containervoid signalContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx - the ContainerRuntimeContextContainerExecutionException - if an error occurs while signaling
 the containervoid reapContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx - the ContainerRuntimeContextContainerExecutionException - if an error occurs while reaping
 the containerorg.apache.hadoop.hdfs.protocol.datatransfer.IOStreamPair execContainer(ContainerExecContext ctx) throws ContainerExecutionException
ctx - the ContainerExecContextContainerExecutionExceptionString[] getIpAndHost(Container container) throws ContainerExecutionException
container - the ContainerContainerExecutionException - if an error occurs while getting the ip
 and hostnameString getExposedPorts(Container container) throws ContainerExecutionException
container - the ContainerContainerExecutionException - if an error occurs while getting
 the exposed portsCopyright © 2008–2023 Apache Software Foundation. All rights reserved.