Class StopContainersResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.StopContainersResponse
The response sent by the NodeManager to the
ApplicationMaster when asked to stop allocated
containers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Map<ContainerId,SerializedException> Get the containerId-to-exception map in which the exception indicates error from per container for failed requests.abstract List<ContainerId>Get the list of containerIds of successfully stopped containers.static StopContainersResponsenewInstance(List<ContainerId> succeededRequests, Map<ContainerId, SerializedException> failedRequests) abstract voidsetFailedRequests(Map<ContainerId, SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from per container for failed requests.abstract voidsetSuccessfullyStoppedContainers(List<ContainerId> succeededRequests) Set the list of containerIds of successfully stopped containers.
-
Constructor Details
-
StopContainersResponse
public StopContainersResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static StopContainersResponse newInstance(List<ContainerId> succeededRequests, Map<ContainerId, SerializedException> failedRequests) -
getSuccessfullyStoppedContainers
Get the list of containerIds of successfully stopped containers.- Returns:
- the list of containerIds of successfully stopped containers.
-
setSuccessfullyStoppedContainers
@Private @Unstable public abstract void setSuccessfullyStoppedContainers(List<ContainerId> succeededRequests) Set the list of containerIds of successfully stopped containers.- Parameters:
succeededRequests- the list of containerIds of successfully stopped containers.
-
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, SerializedException> failedRequests) Set the containerId-to-exception map in which the exception indicates error from per container for failed requests.- Parameters:
failedRequests- map of containerId-to-exception.
-