public class DefaultLCEResourcesHandler extends Object implements LCEResourcesHandler
| Constructor and Description |
|---|
DefaultLCEResourcesHandler() |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConf()
Return the configuration used by this object.
|
String |
getResourcesOption(ContainerId containerId) |
void |
init(LinuxContainerExecutor lce) |
void |
postExecute(ContainerId containerId)
Called by the LinuxContainerExecutor after the executable inside the
container has exited (successfully or not).
|
void |
preExecute(ContainerId containerId,
Resource containerResource)
Called by the LinuxContainerExecutor before launching the executable
inside the container.
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
public void setConf(Configuration conf)
ConfigurablesetConf in interface Configurablepublic Configuration getConf()
ConfigurablegetConf in interface Configurablepublic void init(LinuxContainerExecutor lce)
init in interface LCEResourcesHandlerpublic void preExecute(ContainerId containerId, Resource containerResource)
LCEResourcesHandlerpreExecute in interface LCEResourcesHandlercontainerId - the id of the container being launchedcontainerResource - the node resources the container will be usingpublic void postExecute(ContainerId containerId)
LCEResourcesHandlerpostExecute in interface LCEResourcesHandlercontainerId - the id of the container which was launchedpublic String getResourcesOption(ContainerId containerId)
getResourcesOption in interface LCEResourcesHandlerCopyright © 2013 Apache Software Foundation. All rights reserved.