org.apache.hadoop.yarn.api.protocolrecords.impl.pb
Class AllocateResponsePBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.AllocateResponseProto>
org.apache.hadoop.yarn.api.protocolrecords.impl.pb.AllocateResponsePBImpl
- All Implemented Interfaces:
- AllocateResponse
public class AllocateResponsePBImpl
- extends ProtoBase<YarnServiceProtos.AllocateResponseProto>
- implements AllocateResponse
AllocateResponsePBImpl
public AllocateResponsePBImpl()
AllocateResponsePBImpl
public AllocateResponsePBImpl(YarnServiceProtos.AllocateResponseProto proto)
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.