@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface ContainerRuntime
Modifier and Type | Method and Description |
---|---|
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 |
signalContainer(ContainerRuntimeContext ctx)
Signal a container.
|
boolean |
useWhitelistEnv(Map<String,String> env)
Whether to propagate the whitelist of environment variables from the
nodemanager environment into the container environment.
|
void prepareContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx
- the ContainerRuntimeContext
ContainerExecutionException
- if an error occurs while preparing
the containervoid launchContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx
- the ContainerRuntimeContext
ContainerExecutionException
- if an error occurs while launching
the containervoid signalContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx
- the ContainerRuntimeContext
ContainerExecutionException
- if an error occurs while signaling
the containervoid reapContainer(ContainerRuntimeContext ctx) throws ContainerExecutionException
ctx
- the ContainerRuntimeContext
ContainerExecutionException
- if an error occurs while reaping
the containerString[] getIpAndHost(Container container) throws ContainerExecutionException
container
- the Container
ContainerExecutionException
- if an error occurs while getting the ip
and hostnameboolean useWhitelistEnv(Map<String,String> env)
env
- the container's environment variablesYarnConfiguration.NM_ENV_WHITELIST
Copyright © 2018 Apache Software Foundation. All Rights Reserved.