public class CgroupsLCEResourcesHandler extends Object implements LCEResourcesHandler
Constructor and Description |
---|
CgroupsLCEResourcesHandler() |
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)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
public void init(LinuxContainerExecutor lce) throws IOException
init
in interface LCEResourcesHandler
IOException
public void preExecute(ContainerId containerId, Resource containerResource) throws IOException
LCEResourcesHandler
preExecute
in interface LCEResourcesHandler
containerId
- the id of the container being launchedcontainerResource
- the node resources the container will be usingIOException
public void postExecute(ContainerId containerId)
LCEResourcesHandler
postExecute
in interface LCEResourcesHandler
containerId
- the id of the container which was launchedpublic String getResourcesOption(ContainerId containerId)
getResourcesOption
in interface LCEResourcesHandler
Copyright © 2013 Apache Software Foundation. All rights reserved.