org.apache.hadoop.yarn.api.protocolrecords
Class GetClusterMetricsResponse

java.lang.Object
  extended by org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponse

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

The response sent by the ResourceManager to a client requesting cluster metrics.

See Also:
YarnClusterMetrics, ApplicationClientProtocol.getClusterMetrics(GetClusterMetricsRequest)

Constructor Summary
GetClusterMetricsResponse()
           
 
Method Summary
abstract  YarnClusterMetrics getClusterMetrics()
          Get the YarnClusterMetrics for the cluster.
static GetClusterMetricsResponse newInstance(YarnClusterMetrics metrics)
           
abstract  void setClusterMetrics(YarnClusterMetrics metrics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetClusterMetricsResponse

public GetClusterMetricsResponse()
Method Detail

newInstance

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static GetClusterMetricsResponse newInstance(YarnClusterMetrics metrics)

getClusterMetrics

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract YarnClusterMetrics getClusterMetrics()
Get the YarnClusterMetrics for the cluster.

Returns:
YarnClusterMetrics for the cluster

setClusterMetrics

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setClusterMetrics(YarnClusterMetrics metrics)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.