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.
static YarnClusterMetrics newInstance(int numNodeManagers)
           
abstract  void setNumNodeManagers(int numNodeManagers)
           
 
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

newInstance

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static YarnClusterMetrics newInstance(int numNodeManagers)

getNumNodeManagers

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

Returns:
number of NodeManagers in the cluster

setNumNodeManagers

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setNumNodeManagers(int numNodeManagers)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.