@InterfaceAudience.Private @InterfaceStability.Unstable public interface LinuxContainerRuntime extends ContainerRuntime
Modifier and Type | Method and Description |
---|---|
default Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalResources(Container container) |
void |
initialize(org.apache.hadoop.conf.Configuration conf,
Context nmContext)
Initialize the runtime.
|
boolean |
isRuntimeRequested(Map<String,String> env)
Return whether the given environment variables indicate that the operation
is requesting this runtime.
|
default void |
start() |
default void |
stop() |
execContainer, getExposedPorts, getIpAndHost, launchContainer, prepareContainer, reapContainer, relaunchContainer, signalContainer
void initialize(org.apache.hadoop.conf.Configuration conf, Context nmContext) throws ContainerExecutionException
conf
- the Configuration
to usenmContext
- NMContextContainerExecutionException
- if an error occurs while initializing
the runtimeboolean isRuntimeRequested(Map<String,String> env)
env
- the environment variable settings for the operationdefault void start()
default void stop()
default Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getLocalResources(Container container) throws IOException
IOException
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.