Search in sources :

Example 1 with GetApplicationAttemptsResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProtoOrBuilder in project hadoop by apache.

the class GetApplicationAttemptsResponsePBImpl method initLocalApplicationAttemptsList.

// Once this is called. containerList will never be null - until a getProto
// is called.
private void initLocalApplicationAttemptsList() {
    if (this.applicationAttemptList != null) {
        return;
    }
    GetApplicationAttemptsResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ApplicationAttemptReportProto> list = p.getApplicationAttemptsList();
    applicationAttemptList = new ArrayList<ApplicationAttemptReport>();
    for (ApplicationAttemptReportProto a : list) {
        applicationAttemptList.add(convertFromProtoFormat(a));
    }
}
Also used : ApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptReport) GetApplicationAttemptsResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProtoOrBuilder) ApplicationAttemptReportProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto)

Aggregations

ApplicationAttemptReport (org.apache.hadoop.yarn.api.records.ApplicationAttemptReport)1 ApplicationAttemptReportProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto)1 GetApplicationAttemptsResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProtoOrBuilder)1