use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto in project hadoop by apache.
the class GetApplicationsResponsePBImpl method initLocalApplicationsList.
// Once this is called. containerList will never be null - until a getProto
// is called.
private void initLocalApplicationsList() {
if (this.applicationList != null) {
return;
}
GetApplicationsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ApplicationReportProto> list = p.getApplicationsList();
applicationList = new ArrayList<ApplicationReport>();
for (ApplicationReportProto a : list) {
applicationList.add(convertFromProtoFormat(a));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto in project hadoop by apache.
the class QueueInfoPBImpl method initLocalApplicationsList.
private void initLocalApplicationsList() {
if (this.applicationsList != null) {
return;
}
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
List<ApplicationReportProto> list = p.getApplicationsList();
applicationsList = new ArrayList<ApplicationReport>();
for (ApplicationReportProto a : list) {
applicationsList.add(convertFromProtoFormat(a));
}
}
Aggregations