@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 String | getCgroupsRelativeRoot()Returns relative root for cgroups. | 
| static ResourceHandlerChain | getConfiguredResourceHandlerChain(org.apache.hadoop.conf.Configuration conf,
                                 Context nmContext) | 
| static CpuResourceHandler | getCpuResourceHandler() | 
| static DiskResourceHandler | getDiskResourceHandler() | 
| static MemoryResourceHandler | getMemoryResourceHandler() | 
| static NetworkPacketTaggingHandlerImpl | getNetworkResourceHandler() | 
| static ResourceHandler | getNetworkTaggingHandler(org.apache.hadoop.conf.Configuration conf) | 
| static DiskResourceHandler | initDiskResourceHandler(org.apache.hadoop.conf.Configuration conf) | 
| static MemoryResourceHandler | initMemoryResourceHandler(org.apache.hadoop.conf.Configuration conf) | 
| static ResourceHandler | initNetworkResourceHandler(org.apache.hadoop.conf.Configuration conf) | 
| static OutboundBandwidthResourceHandler | initOutboundBandwidthResourceHandler(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 String getCgroupsRelativeRoot()
public static NetworkPacketTaggingHandlerImpl getNetworkResourceHandler()
public static DiskResourceHandler getDiskResourceHandler()
public static MemoryResourceHandler getMemoryResourceHandler()
public static CpuResourceHandler getCpuResourceHandler()
public static ResourceHandler initNetworkResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static ResourceHandler getNetworkTaggingHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static OutboundBandwidthResourceHandler initOutboundBandwidthResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static DiskResourceHandler initDiskResourceHandler(org.apache.hadoop.conf.Configuration conf) throws ResourceHandlerException
ResourceHandlerExceptionpublic static MemoryResourceHandler initMemoryResourceHandler(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 © 2008–2023 Apache Software Foundation. All rights reserved.