org.apache.hadoop.yarn.server.resourcemanager.scheduler
Class SchedulerNodeReport

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNodeReport

@InterfaceAudience.Private
@InterfaceStability.Stable
public class SchedulerNodeReport
extends Object

Node usage report.


Constructor Summary
SchedulerNodeReport(SchedulerNode node)
           
 
Method Summary
 org.apache.hadoop.yarn.api.records.Resource getAvailableResource()
           
 int getNumContainers()
           
 org.apache.hadoop.yarn.api.records.Resource getUsedResource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerNodeReport

public SchedulerNodeReport(SchedulerNode node)
Method Detail

getUsedResource

public org.apache.hadoop.yarn.api.records.Resource getUsedResource()
Returns:
the amount of resources currently used by the node.

getAvailableResource

public org.apache.hadoop.yarn.api.records.Resource getAvailableResource()
Returns:
the amount of resources currently available on the node

getNumContainers

public int getNumContainers()
Returns:
the number of containers currently running on this node.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.