public class ContainersMonitorImpl extends org.apache.hadoop.service.AbstractService implements ContainersMonitor
| Constructor and Description |
|---|
ContainersMonitorImpl(ContainerExecutor exec,
org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPmemAllocatedForContainers() |
long |
getVCoresAllocatedForContainers() |
long |
getVmemAllocatedForContainers() |
void |
handle(ContainersMonitorEvent monitoringEvent) |
boolean |
isPmemCheckEnabled()
Is the total physical memory check enabled?
|
boolean |
isVmemCheckEnabled()
Is the total virtual memory check enabled?
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic ContainersMonitorImpl(ContainerExecutor exec, org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher, Context context)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic long getVmemAllocatedForContainers()
getVmemAllocatedForContainers in interface ResourceViewpublic boolean isPmemCheckEnabled()
isPmemCheckEnabled in interface ResourceViewpublic long getPmemAllocatedForContainers()
getPmemAllocatedForContainers in interface ResourceViewpublic long getVCoresAllocatedForContainers()
getVCoresAllocatedForContainers in interface ResourceViewpublic boolean isVmemCheckEnabled()
isVmemCheckEnabled 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.