use of org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder in project hadoop by apache.
the class QueueInfoPBImpl method initLocalChildQueuesList.
private void initLocalChildQueuesList() {
if (this.childQueuesList != null) {
return;
}
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
List<QueueInfoProto> list = p.getChildQueuesList();
childQueuesList = new ArrayList<QueueInfo>();
for (QueueInfoProto a : list) {
childQueuesList.add(convertFromProtoFormat(a));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder 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));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder in project hadoop by apache.
the class QueueInfoPBImpl method initNodeLabels.
private void initNodeLabels() {
if (this.accessibleNodeLabels != null) {
return;
}
QueueInfoProtoOrBuilder p = viaProto ? proto : builder;
this.accessibleNodeLabels = new HashSet<String>();
this.accessibleNodeLabels.addAll(p.getAccessibleNodeLabelsList());
}
Aggregations