Class ContainerUpdateResponse

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ContainerUpdateResponse

@Public @Unstable public abstract class ContainerUpdateResponse extends Object

The response sent by the NodeManager to the ApplicationMaster when asked to update container resource.

See Also:
  • 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

      @Public @Unstable public abstract List<ContainerId> 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