|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Unstable public interface AMResponse
The response sent by the ResourceManager the
ApplicationMaster during resource negotiation.
The response includes:
ApplicationMaster know that its
horribly out of sync and needs to reboot.Container.Container.
AMRMProtocol.allocate(AllocateRequest)| Method Summary | |
|---|---|
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. |
List<NodeReport> |
getUpdatedNodes()
Get the list of updated NodeReports. |
void |
setAllocatedContainers(List<Container> containers)
Set the list of newly allocated Container by the
ResourceManager. |
| Method Detail |
|---|
@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()
@InterfaceAudience.Public @InterfaceStability.Unstable List<NodeReport> getUpdatedNodes()
NodeReports. Updates could be
changes in health, availability etc of the nodes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||