public class ContainersMonitorImpl extends org.apache.hadoop.yarn.service.AbstractService implements ContainersMonitor
| Modifier and Type | Field and Description |
|---|---|
static long |
DISABLED_MEMORY_LIMIT
A value which if set for memory related configuration options, indicates
that the options are turned off.
|
| Constructor and Description |
|---|
ContainersMonitorImpl(ContainerExecutor exec,
org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPmemAllocatedForContainers() |
long |
getVmemAllocatedForContainers() |
void |
handle(ContainersMonitorEvent monitoringEvent) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
start() |
void |
stop() |
getConfig, getName, getServiceState, getStartTime, register, unregisterpublic static final long DISABLED_MEMORY_LIMIT
public ContainersMonitorImpl(ContainerExecutor exec, org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher, Context context)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServicepublic long getVmemAllocatedForContainers()
getVmemAllocatedForContainers in interface ResourceViewpublic long getPmemAllocatedForContainers()
getPmemAllocatedForContainers in interface ResourceViewpublic void handle(ContainersMonitorEvent monitoringEvent)
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainersMonitorEvent>Copyright © 2014 Apache Software Foundation. All Rights Reserved.