Class GetContainerStatusesResponse

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

@Public @Stable public abstract class GetContainerStatusesResponse extends Object
The response sent by the NodeManager to the ApplicationMaster when asked to obtain the ContainerStatus of requested containers.
See Also:
  • Constructor Details

    • GetContainerStatusesResponse

      public GetContainerStatusesResponse()
  • Method Details

    • newInstance

      @Private @Unstable public static GetContainerStatusesResponse newInstance(List<ContainerStatus> statuses, Map<ContainerId,org.apache.hadoop.yarn.api.records.SerializedException> failedRequests)
    • getContainerStatuses

      @Public @Stable public abstract List<ContainerStatus> getContainerStatuses()
      Get the ContainerStatuses of the requested containers.
      Returns:
      ContainerStatuses of the requested containers.
    • setContainerStatuses

      @Private @Unstable public abstract void setContainerStatuses(List<ContainerStatus> statuses)
      Set the ContainerStatuses of the requested containers.
      Parameters:
      statuses - ContainerStatuses of the requested containers.
    • getFailedRequests

      @Public @Stable 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 per 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> failedContainers)
      Set the containerId-to-exception map in which the exception indicates error from per container for failed requests.
      Parameters:
      failedContainers - containerId-to-exception map.