Class GetContainerStatusesResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusesResponse
The response sent by the
NodeManager to the
ApplicationMaster when asked to obtain the
ContainerStatus of requested containers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<ContainerStatus>Get theContainerStatuses of the requested containers.abstract Map<ContainerId,org.apache.hadoop.yarn.api.records.SerializedException> Get the containerId-to-exception map in which the exception indicates error from per container for failed requests.static GetContainerStatusesResponsenewInstance(List<ContainerStatus> statuses, Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedRequests) abstract voidsetContainerStatuses(List<ContainerStatus> statuses) Set theContainerStatuses of the requested containers.abstract voidsetFailedRequests(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.
-
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
Get theContainerStatuses of the requested containers.- Returns:
ContainerStatuses of the requested containers.
-
setContainerStatuses
Set theContainerStatuses 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.
-