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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.AllocateResponseProto>
      extended by org.apache.hadoop.yarn.api.protocolrecords.impl.pb.AllocateResponsePBImpl
All Implemented Interfaces:
AllocateResponse

public class AllocateResponsePBImpl
extends ProtoBase<YarnServiceProtos.AllocateResponseProto>
implements AllocateResponse


Constructor Summary
AllocateResponsePBImpl()
           
AllocateResponsePBImpl(YarnServiceProtos.AllocateResponseProto proto)
           
 
Method Summary
 AMResponse getAMResponse()
          Get the AMResponse sent by the ResourceManager.
 int getNumClusterNodes()
          Get the number of hosts available on the cluster.
 YarnServiceProtos.AllocateResponseProto getProto()
           
 void setAMResponse(AMResponse aMResponse)
           
 void setNumClusterNodes(int numNodes)
           
 
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

AllocateResponsePBImpl

public AllocateResponsePBImpl()

AllocateResponsePBImpl

public AllocateResponsePBImpl(YarnServiceProtos.AllocateResponseProto proto)
Method Detail

getProto

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

getAMResponse

public AMResponse getAMResponse()
Description copied from interface: AllocateResponse
Get the AMResponse sent by the ResourceManager.

Specified by:
getAMResponse in interface AllocateResponse
Returns:
AMResponse sent by the ResourceManager

setAMResponse

public void setAMResponse(AMResponse aMResponse)
Specified by:
setAMResponse in interface AllocateResponse

getNumClusterNodes

public int getNumClusterNodes()
Description copied from interface: AllocateResponse
Get the number of hosts available on the cluster.

Specified by:
getNumClusterNodes in interface AllocateResponse
Returns:
the available host count.

setNumClusterNodes

public void setNumClusterNodes(int numNodes)
Specified by:
setNumClusterNodes in interface AllocateResponse


Copyright © 2012 Apache Software Foundation. All Rights Reserved.