@InterfaceStability.Unstable @InterfaceAudience.Private public class CGroupsCpuResourceHandlerImpl extends Object implements CpuResourceHandler
| Modifier and Type | Method and Description |
|---|---|
List<PrivilegedOperation> |
bootstrap(org.apache.hadoop.conf.Configuration conf)
Bootstrap resource susbsystem.
|
static boolean |
cpuLimitsExist(String path) |
static int[] |
getOverallLimits(float yarnProcessors) |
List<PrivilegedOperation> |
postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Perform any tasks necessary after container completion
|
List<PrivilegedOperation> |
preStart(Container container)
Prepare a resource environment for container launch
|
List<PrivilegedOperation> |
reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Require state for container that was already launched
|
List<PrivilegedOperation> |
teardown()
Teardown environment for resource subsystem if requested.
|
public List<PrivilegedOperation> bootstrap(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerbootstrap in interface ResourceHandlerResourceHandlerException@InterfaceAudience.Private public static boolean cpuLimitsExist(String path) throws IOException
IOException@InterfaceAudience.Private public static int[] getOverallLimits(float yarnProcessors)
public List<PrivilegedOperation> preStart(Container container) throws ResourceHandlerException
ResourceHandlerpreStart in interface ResourceHandlercontainer - Container being launchedResourceHandlerExceptionpublic List<PrivilegedOperation> reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
ResourceHandlerreacquireContainer in interface ResourceHandlercontainerId - if of the container being reacquired.ResourceHandlerExceptionpublic List<PrivilegedOperation> postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
ResourceHandlerpostComplete in interface ResourceHandlercontainerId - of the container that was completed.ResourceHandlerExceptionpublic List<PrivilegedOperation> teardown() throws ResourceHandlerException
ResourceHandlerteardown in interface ResourceHandlerResourceHandlerExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.