org.apache.hadoop.yarn.server.nodemanager.util
Class DefaultLCEResourcesHandler

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.util.DefaultLCEResourcesHandler
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, LCEResourcesHandler

public class DefaultLCEResourcesHandler
extends Object
implements LCEResourcesHandler


Constructor Summary
DefaultLCEResourcesHandler()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 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.
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLCEResourcesHandler

public DefaultLCEResourcesHandler()
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

init

public void init(LinuxContainerExecutor lce)
Specified by:
init in interface LCEResourcesHandler

preExecute

public void preExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId,
                       org.apache.hadoop.yarn.api.records.Resource containerResource)
Description copied from interface: LCEResourcesHandler
Called by the LinuxContainerExecutor before launching the executable inside the container.

Specified by:
preExecute in interface LCEResourcesHandler
Parameters:
containerId - the id of the container being launched
containerResource - the node resources the container will be using

postExecute

public void postExecute(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Description copied from interface: LCEResourcesHandler
Called by the LinuxContainerExecutor after the executable inside the container has exited (successfully or not).

Specified by:
postExecute in interface LCEResourcesHandler
Parameters:
containerId - the id of the container which was launched

getResourcesOption

public String getResourcesOption(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Specified by:
getResourcesOption in interface LCEResourcesHandler


Copyright © 2013 Apache Software Foundation. All Rights Reserved.