@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) |
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
ResourceHandlerException
public static DiskResourceHandler getDiskResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerException
public static MemoryResourceHandler getMemoryResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerException
public static ResourceHandlerChain getConfiguredResourceHandlerChain(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerException
public 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 © 2018 Apache Software Foundation. All Rights Reserved.