@InterfaceAudience.Public @InterfaceStability.Unstable public interface AMResponse
The response sent by the ResourceManager the
ApplicationMaster during resource negotiation.
The response includes:
| Modifier and Type | Method and Description |
|---|---|
List<Container> |
getAllocatedContainers()
Get the list of newly allocated
Container by the
ResourceManager. |
Resource |
getAvailableResources()
Get the available headroom for resources in the cluster for the
application.
|
List<ContainerStatus> |
getCompletedContainersStatuses()
Get the list of completed containers' statuses.
|
boolean |
getReboot()
Should the
ApplicationMaster reboot for being horribly
out-of-sync with the ResourceManager as deigned by
getResponseId()? |
int |
getResponseId()
Get the last response id.
|
void |
setAllocatedContainers(List<Container> containers)
Set the list of newly allocated
Container by the
ResourceManager. |
@InterfaceAudience.Public @InterfaceStability.Stable boolean getReboot()
ApplicationMaster reboot for being horribly
out-of-sync with the ResourceManager as deigned by
getResponseId()?true if the ApplicationMaster should
reboot, false otherwise@InterfaceAudience.Public @InterfaceStability.Stable int getResponseId()
@InterfaceAudience.Public @InterfaceStability.Stable List<Container> getAllocatedContainers()
Container by the
ResourceManager.Container@InterfaceAudience.Public @InterfaceStability.Stable void setAllocatedContainers(List<Container> containers)
Container by the
ResourceManager.containers - list of newly allocated Container@InterfaceAudience.Public @InterfaceStability.Stable Resource getAvailableResources()
@InterfaceAudience.Public @InterfaceStability.Stable List<ContainerStatus> getCompletedContainersStatuses()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.