Class ContainerUpdateResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ContainerUpdateResponse
The response sent by the NodeManager to the
ApplicationMaster when asked to update container resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Map<ContainerId,org.apache.hadoop.yarn.api.records.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 update.static ContainerUpdateResponsenewInstance(List<ContainerId> successfullyUpdatedContainers, Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedRequests) abstract voidsetFailedRequests(Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from each container for failed requests.abstract voidsetSuccessfullyUpdatedContainers(List<ContainerId> succeedUpdatedContainers) Set the list of containerIds of containers whose resource have been successfully updated.
-
Constructor Details
-
ContainerUpdateResponse
public ContainerUpdateResponse()
-
-
Method Details
-
newInstance
public static ContainerUpdateResponse newInstance(List<ContainerId> successfullyUpdatedContainers, Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedRequests) -
getSuccessfullyUpdatedContainers
Get the list of containerIds of containers whose resource have been successfully update.- Returns:
- the list of containerIds of containers whose resource have been successfully updated.
-
setSuccessfullyUpdatedContainers
@Private @Unstable public abstract void setSuccessfullyUpdatedContainers(List<ContainerId> succeedUpdatedContainers) Set the list of containerIds of containers whose resource have been successfully updated.- Parameters:
succeedUpdatedContainers- Containers whose update request were successfully completed.
-
getFailedRequests
@Public @Unstable public abstract Map<ContainerId,org.apache.hadoop.yarn.api.records.SerializedException> 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, org.apache.hadoop.yarn.api.records.SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from each container for failed requests.- Parameters:
failedRequests- Containers whose update request were failed
-