LinuxContainerRuntimeDefaultLinuxContainerRuntime, DelegatingLinuxContainerRuntime, DockerLinuxContainerRuntime, JavaSandboxLinuxContainerRuntime, OCIContainerRuntime, RuncContainerRuntime@Private
@Unstable
public interface ContainerRuntime
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.hdfs.protocol.datatransfer.IOStreamPair |
execContainer(ContainerExecContext ctx) |
Run a program in container.
|
java.lang.String |
getExposedPorts(Container container) |
Return the exposed ports of the container.
|
java.lang.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 ContainerExecContextContainerExecutionExceptionjava.lang.String[] getIpAndHost(Container container) throws ContainerExecutionException
container - the ContainerContainerExecutionException - if an error occurs while getting the ip
and hostnamejava.lang.String getExposedPorts(Container container) throws ContainerExecutionException
container - the ContainerContainerExecutionException - if an error occurs while getting
the exposed portsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.