org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor
Class ContainersMonitorImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<ContainersMonitorEvent>, ContainersMonitor, ResourceView, org.apache.hadoop.yarn.service.Service

public class ContainersMonitorImpl
extends org.apache.hadoop.yarn.service.AbstractService
implements ContainersMonitor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Field Summary
static long DISABLED_MEMORY_LIMIT
          A value which if set for memory related configuration options, indicates that the options are turned off.
 
Constructor Summary
ContainersMonitorImpl(ContainerExecutor exec, org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher, Context context)
           
 
Method Summary
 long getPmemAllocatedForContainers()
           
 long getVmemAllocatedForContainers()
           
 void handle(ContainersMonitorEvent monitoringEvent)
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.yarn.service.Service
getConfig, getName, getServiceState, getStartTime, register, unregister
 

Field Detail

DISABLED_MEMORY_LIMIT

public static final long DISABLED_MEMORY_LIMIT
A value which if set for memory related configuration options, indicates that the options are turned off.

See Also:
Constant Field Values
Constructor Detail

ContainersMonitorImpl

public ContainersMonitorImpl(ContainerExecutor exec,
                             org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher,
                             Context context)
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService

start

public void start()
Specified by:
start in interface org.apache.hadoop.yarn.service.Service
Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService

getVmemAllocatedForContainers

public long getVmemAllocatedForContainers()
Specified by:
getVmemAllocatedForContainers in interface ResourceView

getPmemAllocatedForContainers

public long getPmemAllocatedForContainers()
Specified by:
getPmemAllocatedForContainers in interface ResourceView

handle

public void handle(ContainersMonitorEvent monitoringEvent)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainersMonitorEvent>


Copyright © 2013 Apache Software Foundation. All Rights Reserved.