Search in sources :

Example 1 with GetApplicationsResponseProtoOrBuilder

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

Aggregations

ApplicationReport (org.apache.hadoop.yarn.api.records.ApplicationReport)1 ApplicationReportProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto)1 GetApplicationsResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProtoOrBuilder)1