org.apache.hadoop.yarn.api.records
Class YarnClusterMetrics

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.YarnClusterMetrics

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class YarnClusterMetrics
extends Object

YarnClusterMetrics represents cluster metrics.

Currently only number of NodeManagers is provided.


Constructor Summary
YarnClusterMetrics()
           
 
Method Summary
abstract  int getNumNodeManagers()
          Get the number of NodeManagers in the cluster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnClusterMetrics

public YarnClusterMetrics()
Method Detail

getNumNodeManagers

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract int getNumNodeManagers()
Get the number of NodeManagers in the cluster.

Returns:
number of NodeManagers in the cluster


Copyright © 2014 Apache Software Foundation. All Rights Reserved.