org.apache.hadoop.yarn.api.protocolrecords.impl.pb
Class GetClusterMetricsResponsePBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.GetClusterMetricsResponseProto>
      extended by org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetClusterMetricsResponsePBImpl
All Implemented Interfaces:
GetClusterMetricsResponse

public class GetClusterMetricsResponsePBImpl
extends ProtoBase<YarnServiceProtos.GetClusterMetricsResponseProto>
implements GetClusterMetricsResponse


Constructor Summary
GetClusterMetricsResponsePBImpl()
           
GetClusterMetricsResponsePBImpl(YarnServiceProtos.GetClusterMetricsResponseProto proto)
           
 
Method Summary
 YarnClusterMetrics getClusterMetrics()
          Get the YarnClusterMetrics for the cluster.
 YarnServiceProtos.GetClusterMetricsResponseProto getProto()
           
 void setClusterMetrics(YarnClusterMetrics clusterMetrics)
           
 
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

GetClusterMetricsResponsePBImpl

public GetClusterMetricsResponsePBImpl()

GetClusterMetricsResponsePBImpl

public GetClusterMetricsResponsePBImpl(YarnServiceProtos.GetClusterMetricsResponseProto proto)
Method Detail

getProto

public YarnServiceProtos.GetClusterMetricsResponseProto getProto()
Specified by:
getProto in class ProtoBase<YarnServiceProtos.GetClusterMetricsResponseProto>

getClusterMetrics

public YarnClusterMetrics getClusterMetrics()
Description copied from interface: GetClusterMetricsResponse
Get the YarnClusterMetrics for the cluster.

Specified by:
getClusterMetrics in interface GetClusterMetricsResponse
Returns:
YarnClusterMetrics for the cluster

setClusterMetrics

public void setClusterMetrics(YarnClusterMetrics clusterMetrics)
Specified by:
setClusterMetrics in interface GetClusterMetricsResponse


Copyright © 2012 Apache Software Foundation. All Rights Reserved.