Search in sources :

Example 6 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method getAMRMToken.

@Override
public Token getAMRMToken() {
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    if (amRmToken != null) {
        return amRmToken;
    }
    if (!p.hasAmRmToken()) {
        return null;
    }
    amRmToken = convertFromProtoFormat(p.getAmRmToken());
    return amRmToken;
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)

Example 7 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method getCurrentApplicationAttemptId.

@Override
public ApplicationAttemptId getCurrentApplicationAttemptId() {
    if (this.currentApplicationAttemptId != null) {
        return this.currentApplicationAttemptId;
    }
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasCurrentApplicationAttemptId()) {
        return null;
    }
    this.currentApplicationAttemptId = convertFromProtoFormat(p.getCurrentApplicationAttemptId());
    return this.currentApplicationAttemptId;
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)

Aggregations

ApplicationReportProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)7 ApplicationTimeout (org.apache.hadoop.yarn.api.records.ApplicationTimeout)1 ApplicationTimeoutType (org.apache.hadoop.yarn.api.records.ApplicationTimeoutType)1 AppTimeoutsMapProto (org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto)1