@Private
@Unstable
public class ResourceHandlerModule
extends java.lang.Object
| Constructor | Description |
|---|---|
ResourceHandlerModule() |
| Modifier and Type | Method | Description |
|---|---|---|
static CGroupsHandler |
getCGroupsHandler() |
Returns a (possibly null) reference to a cGroupsHandler.
|
static java.lang.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 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
parseConfiguredCGroupPath(java.lang.String cgroupMountPath) |
If a cgroup mount directory is specified, it returns cgroup directories
with valid names.
|
public static CGroupsHandler getCGroupsHandler()
public static java.lang.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 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> parseConfiguredCGroupPath(java.lang.String cgroupMountPath)
throws java.io.IOException
cgroupMountPath - Root cgroup mount path (/sys/fs/cgroup in the
example above)CGroupsHandlerImpl.parseMtab(String)java.io.IOException - if the specified directory cannot be listedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.