org.apache.hadoop.yarn.api.protocolrecords
Interface AllocateResponse

All Known Implementing Classes:
AllocateResponsePBImpl

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface AllocateResponse

The response sent by the ResourceManager the ApplicationMaster during resource negotiation.

The response, via AMResponse, includes:

See Also:
AMRMProtocol.allocate(AllocateRequest)

Method Summary
 AMResponse getAMResponse()
          Get the AMResponse sent by the ResourceManager.
 int getNumClusterNodes()
          Get the number of hosts available on the cluster.
 void setAMResponse(AMResponse amResponse)
           
 void setNumClusterNodes(int numNodes)
           
 

Method Detail

getAMResponse

@InterfaceAudience.Public
@InterfaceStability.Stable
AMResponse getAMResponse()
Get the AMResponse sent by the ResourceManager.

Returns:
AMResponse sent by the ResourceManager

setAMResponse

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setAMResponse(AMResponse amResponse)

getNumClusterNodes

@InterfaceAudience.Public
@InterfaceStability.Stable
int getNumClusterNodes()
Get the number of hosts available on the cluster.

Returns:
the available host count.

setNumClusterNodes

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setNumClusterNodes(int numNodes)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.