Class IncreaseContainersResourceResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.IncreaseContainersResourceResponse
The response sent by the NodeManager to the
ApplicationMaster when asked to increase container resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Map<ContainerId,SerializedException> Get the containerId-to-exception map in which the exception indicates error from each container for failed requests.abstract List<ContainerId>Get the list of containerIds of containers whose resource have been successfully increased.newInstance(List<ContainerId> successfullyIncreasedContainers, Map<ContainerId, SerializedException> failedRequests) abstract voidsetFailedRequests(Map<ContainerId, SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from each container for failed requests.abstract voidsetSuccessfullyIncreasedContainers(List<ContainerId> succeedIncreasedContainers) Set the list of containerIds of containers whose resource have been successfully increased.
-
Constructor Details
-
IncreaseContainersResourceResponse
public IncreaseContainersResourceResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static IncreaseContainersResourceResponse newInstance(List<ContainerId> successfullyIncreasedContainers, Map<ContainerId, SerializedException> failedRequests) -
getSuccessfullyIncreasedContainers
Get the list of containerIds of containers whose resource have been successfully increased.- Returns:
- the list of containerIds of containers whose resource have been successfully increased.
-
setSuccessfullyIncreasedContainers
@Private @Unstable public abstract void setSuccessfullyIncreasedContainers(List<ContainerId> succeedIncreasedContainers) Set the list of containerIds of containers whose resource have been successfully increased.- Parameters:
succeedIncreasedContainers- list of containerIds of containers whose resource have been successfully increased.
-
getFailedRequests
Get the containerId-to-exception map in which the exception indicates error from each container for failed requests.- Returns:
- map of containerId-to-exception
-
setFailedRequests
@Private @Unstable public abstract void setFailedRequests(Map<ContainerId, SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from each container for failed requests.- Parameters:
failedRequests- map of containerId-to-exception.
-