@Public
@Stable
public abstract class StartContainersResponse
extends java.lang.Object
The response sent by the NodeManager to the
ApplicationMaster when asked to start an allocated
container.
| Constructor | Description |
|---|---|
StartContainersResponse() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.Map<java.lang.String,java.nio.ByteBuffer> |
getAllServicesMetaData() |
Get the meta-data from all auxiliary services running on the
NodeManager. |
abstract java.util.Map<ContainerId,SerializedException> |
getFailedRequests() |
Get the containerId-to-exception map in which the exception indicates error
from per container for failed requests
|
abstract java.util.List<ContainerId> |
getSuccessfullyStartedContainers() |
Get the list of
ContainerId s of the containers that are
started successfully. |
static StartContainersResponse |
newInstance(java.util.Map<java.lang.String,java.nio.ByteBuffer> servicesMetaData,
java.util.List<ContainerId> succeededContainers,
java.util.Map<ContainerId,SerializedException> failedContainers) |
|
abstract void |
setAllServicesMetaData(java.util.Map<java.lang.String,java.nio.ByteBuffer> allServicesMetaData) |
Set to the list of auxiliary services which have been started on the
NodeManager. |
abstract void |
setFailedRequests(java.util.Map<ContainerId,SerializedException> failedContainers) |
Set the containerId-to-exception map in which the exception indicates error
from per container for failed requests.
|
abstract void |
setSuccessfullyStartedContainers(java.util.List<ContainerId> succeededContainers) |
@Private @Unstable public static StartContainersResponse newInstance(java.util.Map<java.lang.String,java.nio.ByteBuffer> servicesMetaData, java.util.List<ContainerId> succeededContainers, java.util.Map<ContainerId,SerializedException> failedContainers)
@Public @Stable public abstract java.util.List<ContainerId> getSuccessfullyStartedContainers()
ContainerId s of the containers that are
started successfully.ContainerId s of the containers that are
started successfully.ContainerManagementProtocol.startContainers(StartContainersRequest)@Private @Unstable public abstract void setSuccessfullyStartedContainers(java.util.List<ContainerId> succeededContainers)
@Public @Stable public abstract java.util.Map<ContainerId,SerializedException> getFailedRequests()
@Private @Unstable public abstract void setFailedRequests(java.util.Map<ContainerId,SerializedException> failedContainers)
failedContainers - container for failed requests.@Public @Stable public abstract java.util.Map<java.lang.String,java.nio.ByteBuffer> 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
ByteBuffer
To be able to interpret the per-service meta-data, you should consult the documentation for the Auxiliary-service configured on the NodeManager
@Private @Unstable public abstract void setAllServicesMetaData(java.util.Map<java.lang.String,java.nio.ByteBuffer> allServicesMetaData)
NodeManager. This is done only once when the
NodeManager starts upallServicesMetaData - A map from auxiliary service names to the opaque blob
ByteBuffer for that auxiliary serviceCopyright © 2008–2025 Apache Software Foundation. All rights reserved.