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;
}
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;
}
Aggregations