use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto in project hadoop by apache.
the class GetContainersResponsePBImpl method initLocalContainerList.
// Once this is called. containerList will never be null - until a getProto
// is called.
private void initLocalContainerList() {
if (this.containerList != null) {
return;
}
GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerReportProto> list = p.getContainersList();
containerList = new ArrayList<ContainerReport>();
for (ContainerReportProto c : list) {
containerList.add(convertFromProtoFormat(c));
}
}
Aggregations