org.apache.hadoop.yarn.server.nodemanager.util
Interface LCEResourcesHandler
- All Superinterfaces:
- org.apache.hadoop.conf.Configurable
- All Known Implementing Classes:
- CgroupsLCEResourcesHandler, DefaultLCEResourcesHandler
public interface LCEResourcesHandler
- extends org.apache.hadoop.conf.Configurable
|
Method Summary |
String |
getResourcesOption(org.apache.hadoop.yarn.api.records.ContainerId containerId)
|
void |
init(LinuxContainerExecutor lce)
|
void |
postExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Called by the LinuxContainerExecutor after the executable inside the
container has exited (successfully or not). |
void |
preExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.Resource containerResource)
Called by the LinuxContainerExecutor before launching the executable
inside the container. |
| Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
init
void init(LinuxContainerExecutor lce)
throws IOException
- Throws:
IOException
preExecute
void preExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.Resource containerResource)
throws IOException
- Called by the LinuxContainerExecutor before launching the executable
inside the container.
- Parameters:
containerId - the id of the container being launchedcontainerResource - the node resources the container will be using
- Throws:
IOException
postExecute
void postExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId)
- Called by the LinuxContainerExecutor after the executable inside the
container has exited (successfully or not).
- Parameters:
containerId - the id of the container which was launched
getResourcesOption
String getResourcesOption(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.