use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto in project hadoop by apache.
the class RegisterNodeManagerRequestPBImpl method addNMContainerStatusesToProto.
private synchronized void addNMContainerStatusesToProto() {
maybeInitBuilder();
builder.clearContainerStatuses();
List<NMContainerStatusProto> list = new ArrayList<NMContainerStatusProto>();
for (NMContainerStatus status : this.containerStatuses) {
list.add(convertToProtoFormat(status));
}
builder.addAllContainerStatuses(list);
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto in project hadoop by apache.
the class RegisterNodeManagerRequestPBImpl method initContainerRecoveryReports.
private synchronized void initContainerRecoveryReports() {
if (this.containerStatuses != null) {
return;
}
RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
List<NMContainerStatusProto> list = p.getContainerStatusesList();
this.containerStatuses = new ArrayList<NMContainerStatus>();
for (NMContainerStatusProto c : list) {
this.containerStatuses.add(convertFromProtoFormat(c));
}
}
Aggregations