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


@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.
 

Method Detail

getAMResponse

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

Returns:
AMResponse sent by the ResourceManager

getNumClusterNodes

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

Returns:
the available host count.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.