@InterfaceAudience.Private @InterfaceStability.Unstable public class ResourceHandlerModule extends Object
| Constructor and Description |
|---|
ResourceHandlerModule() |
| Modifier and Type | Method and Description |
|---|---|
static CGroupsHandler |
getCGroupsHandler()
Returns a (possibly null) reference to a cGroupsHandler.
|
static ResourceHandlerChain |
getConfiguredResourceHandlerChain(org.apache.hadoop.conf.Configuration conf,
Context nmContext) |
static DiskResourceHandler |
getDiskResourceHandler(org.apache.hadoop.conf.Configuration conf) |
static MemoryResourceHandler |
getMemoryResourceHandler(org.apache.hadoop.conf.Configuration conf) |
static OutboundBandwidthResourceHandler |
getOutboundBandwidthResourceHandler(org.apache.hadoop.conf.Configuration conf) |
static Map<String,Set<String>> |
parseConfiguredCGroupPath(String cgroupMountPath)
If a cgroup mount directory is specified, it returns cgroup directories
with valid names.
|
public static CGroupsHandler getCGroupsHandler()
public static OutboundBandwidthResourceHandler getOutboundBandwidthResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static DiskResourceHandler getDiskResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static MemoryResourceHandler getMemoryResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static ResourceHandlerChain getConfiguredResourceHandlerChain(org.apache.hadoop.conf.Configuration conf, Context nmContext) throws ResourceHandlerException
ResourceHandlerExceptionpublic static Map<String,Set<String>> parseConfiguredCGroupPath(String cgroupMountPath) throws IOException
cgroupMountPath - Root cgroup mount path (/sys/fs/cgroup in the
example above)CGroupsHandlerImpl.parseMtab(String)IOException - if the specified directory cannot be listedCopyright © 2022 Apache Software Foundation. All rights reserved.