Class StartContainersResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.StartContainersResponse
The response sent by the NodeManager to the
ApplicationMaster when asked to start an allocated
container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Map<String,ByteBuffer> Get the meta-data from all auxiliary services running on theNodeManager.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 requestsabstract List<ContainerId>Get the list ofContainerIds of the containers that are started successfully.static StartContainersResponsenewInstance(Map<String, ByteBuffer> servicesMetaData, List<ContainerId> succeededContainers, Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedContainers) abstract voidsetAllServicesMetaData(Map<String, ByteBuffer> allServicesMetaData) Set to the list of auxiliary services which have been started on theNodeManager.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.abstract voidsetSuccessfullyStartedContainers(List<ContainerId> succeededContainers)
-
Constructor Details
-
StartContainersResponse
public StartContainersResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static StartContainersResponse newInstance(Map<String, ByteBuffer> servicesMetaData, List<ContainerId> succeededContainers, Map<ContainerId, org.apache.hadoop.yarn.api.records.SerializedException> failedContainers) -
getSuccessfullyStartedContainers
Get the list ofContainerIds of the containers that are started successfully.- Returns:
- the list of
ContainerIds of the containers that are started successfully. - See Also:
-
setSuccessfullyStartedContainers
@Private @Unstable public abstract void setSuccessfullyStartedContainers(List<ContainerId> succeededContainers) -
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- container for failed requests.
-
getAllServicesMetaData
Get the meta-data from all auxiliary services running on the
NodeManager.The meta-data is returned as a Map between the auxiliary service names and their corresponding per service meta-data as an opaque blob
ByteBufferTo be able to interpret the per-service meta-data, you should consult the documentation for the Auxiliary-service configured on the NodeManager
- Returns:
- a Map between the names of auxiliary services and their corresponding meta-data
-
setAllServicesMetaData
@Private @Unstable public abstract void setAllServicesMetaData(Map<String, ByteBuffer> allServicesMetaData) Set to the list of auxiliary services which have been started on theNodeManager. This is done only once when theNodeManagerstarts up- Parameters:
allServicesMetaData- A map from auxiliary service names to the opaque blobByteBufferfor that auxiliary service
-