@InterfaceAudience.Private @InterfaceStability.Unstable public class StartContainersResponsePBImpl extends StartContainersResponse
| Constructor and Description |
|---|
StartContainersResponsePBImpl() |
StartContainersResponsePBImpl(YarnServiceProtos.StartContainersResponseProto proto) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteBuffer |
convertFromProtoFormat(com.google.protobuf.ByteString byteString) |
protected com.google.protobuf.ByteString |
convertToProtoFormat(ByteBuffer byteBuffer) |
boolean |
equals(Object other) |
Map<String,ByteBuffer> |
getAllServicesMetaData()
Get the meta-data from all auxiliary services running on the
NodeManager. |
Map<ContainerId,SerializedException> |
getFailedRequests()
Get the containerId-to-exception map in which the exception indicates error
from per container for failed requests
|
YarnServiceProtos.StartContainersResponseProto |
getProto() |
List<ContainerId> |
getSuccessfullyStartedContainers()
Get the list of
ContainerId s of the containers that are
started successfully. |
int |
hashCode() |
void |
setAllServicesMetaData(Map<String,ByteBuffer> servicesMetaData)
Set to the list of auxiliary services which have been started on the
NodeManager. |
void |
setFailedRequests(Map<ContainerId,SerializedException> failedContainers)
Set the containerId-to-exception map in which the exception indicates error
from per container for failed requests
|
void |
setSuccessfullyStartedContainers(List<ContainerId> succeededContainers) |
String |
toString() |
newInstancepublic StartContainersResponsePBImpl()
public StartContainersResponsePBImpl(YarnServiceProtos.StartContainersResponseProto proto)
public YarnServiceProtos.StartContainersResponseProto getProto()
protected final ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
protected final com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
public Map<String,ByteBuffer> getAllServicesMetaData()
StartContainersResponse
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
getAllServicesMetaData in class StartContainersResponsepublic void setAllServicesMetaData(Map<String,ByteBuffer> servicesMetaData)
StartContainersResponseNodeManager. This is done only once when the
NodeManager starts upsetAllServicesMetaData in class StartContainersResponseservicesMetaData - A map from auxiliary service names to the opaque blob
ByteBuffer for that auxiliary servicepublic List<ContainerId> getSuccessfullyStartedContainers()
StartContainersResponseContainerId s of the containers that are
started successfully.getSuccessfullyStartedContainers in class StartContainersResponseContainerId s of the containers that are
started successfully.ContainerManagementProtocol.startContainers(StartContainersRequest)public void setSuccessfullyStartedContainers(List<ContainerId> succeededContainers)
setSuccessfullyStartedContainers in class StartContainersResponsepublic Map<ContainerId,SerializedException> getFailedRequests()
StartContainersResponsegetFailedRequests in class StartContainersResponsepublic void setFailedRequests(Map<ContainerId,SerializedException> failedContainers)
StartContainersResponsesetFailedRequests in class StartContainersResponseCopyright © 2013 Apache Software Foundation. All rights reserved.