org.apache.hadoop.yarn.api.records.impl.pb
Class YarnClusterMetricsPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.YarnClusterMetricsProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.YarnClusterMetricsPBImpl
All Implemented Interfaces:
YarnClusterMetrics

public class YarnClusterMetricsPBImpl
extends ProtoBase<YarnProtos.YarnClusterMetricsProto>
implements YarnClusterMetrics


Constructor Summary
YarnClusterMetricsPBImpl()
           
YarnClusterMetricsPBImpl(YarnProtos.YarnClusterMetricsProto proto)
           
 
Method Summary
 int getNumNodeManagers()
          Get the number of NodeManagers in the cluster.
 YarnProtos.YarnClusterMetricsProto getProto()
           
 void setNumNodeManagers(int numNodeManagers)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YarnClusterMetricsPBImpl

public YarnClusterMetricsPBImpl()

YarnClusterMetricsPBImpl

public YarnClusterMetricsPBImpl(YarnProtos.YarnClusterMetricsProto proto)
Method Detail

getProto

public YarnProtos.YarnClusterMetricsProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.YarnClusterMetricsProto>

getNumNodeManagers

public int getNumNodeManagers()
Description copied from interface: YarnClusterMetrics
Get the number of NodeManagers in the cluster.

Specified by:
getNumNodeManagers in interface YarnClusterMetrics
Returns:
number of NodeManagers in the cluster

setNumNodeManagers

public void setNumNodeManagers(int numNodeManagers)
Specified by:
setNumNodeManagers in interface YarnClusterMetrics


Copyright © 2012 Apache Software Foundation. All Rights Reserved.