use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder in project hadoop by apache.
the class StartContainersResponsePBImpl method initSucceededContainers.
private void initSucceededContainers() {
if (this.succeededContainers != null)
return;
StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getSucceededRequestsList();
this.succeededContainers = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.succeededContainers.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder in project hadoop by apache.
the class StartContainersResponsePBImpl method initServicesMetaData.
private void initServicesMetaData() {
if (this.servicesMetaData != null) {
return;
}
StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<StringBytesMapProto> list = p.getServicesMetaDataList();
this.servicesMetaData = new HashMap<String, ByteBuffer>();
for (StringBytesMapProto c : list) {
this.servicesMetaData.put(c.getKey(), convertFromProtoFormat(c.getValue()));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder in project hadoop by apache.
the class StartContainersResponsePBImpl method initFailedContainers.
private void initFailedContainers() {
if (this.failedContainers != null) {
return;
}
StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
this.failedContainers = new HashMap<ContainerId, SerializedException>();
for (ContainerExceptionMapProto ce : protoList) {
this.failedContainers.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
}
}
Aggregations