Search in sources :

Example 1 with QueueInfoProtoOrBuilder

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));
    }
}
Also used : QueueInfo(org.apache.hadoop.yarn.api.records.QueueInfo) QueueInfoProto(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto) QueueInfoProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder)

Example 2 with QueueInfoProtoOrBuilder

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));
    }
}
Also used : ApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationReport) ApplicationReportProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto) QueueInfoProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder)

Example 3 with QueueInfoProtoOrBuilder

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());
}
Also used : QueueInfoProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder)

Aggregations

QueueInfoProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder)3 ApplicationReport (org.apache.hadoop.yarn.api.records.ApplicationReport)1 QueueInfo (org.apache.hadoop.yarn.api.records.QueueInfo)1 ApplicationReportProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto)1 QueueInfoProto (org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto)1