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