Class IncreaseContainersResourceResponse

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

@Public @Unstable public abstract class IncreaseContainersResourceResponse extends Object

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

See Also:
  • Constructor Details

    • IncreaseContainersResourceResponse

      public IncreaseContainersResourceResponse()
  • Method Details

    • newInstance

      @Private @Unstable public static IncreaseContainersResourceResponse newInstance(List<ContainerId> successfullyIncreasedContainers, Map<ContainerId,SerializedException> failedRequests)
    • getSuccessfullyIncreasedContainers

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

      @Public @Unstable public abstract Map<ContainerId,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,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.