org.apache.hadoop.yarn.api.records
Class YarnClusterMetrics
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YarnClusterMetrics
public YarnClusterMetrics()
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.