use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.
the class ApplicationReportPBImpl method getPriority.
@Override
public Priority getPriority() {
ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
if (this.priority != null) {
return this.priority;
}
if (!p.hasPriority()) {
return null;
}
this.priority = convertFromProtoFormat(p.getPriority());
return this.priority;
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.
the class ApplicationReportPBImpl method initApplicationTags.
private void initApplicationTags() {
if (this.applicationTags != null) {
return;
}
ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
this.applicationTags = new HashSet<String>();
this.applicationTags.addAll(p.getApplicationTagsList());
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.
the class ApplicationReportPBImpl method initApplicationTimeout.
private void initApplicationTimeout() {
if (this.applicationTimeouts != null) {
return;
}
ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
List<AppTimeoutsMapProto> lists = p.getAppTimeoutsList();
this.applicationTimeouts = new HashMap<ApplicationTimeoutType, ApplicationTimeout>(lists.size());
for (AppTimeoutsMapProto timeoutProto : lists) {
this.applicationTimeouts.put(ProtoUtils.convertFromProtoFormat(timeoutProto.getApplicationTimeoutType()), convertFromProtoFormat(timeoutProto.getApplicationTimeout()));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.
the class ApplicationReportPBImpl method getApplicationId.
@Override
public ApplicationId getApplicationId() {
if (this.applicationId != null) {
return this.applicationId;
}
ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasApplicationId()) {
return null;
}
this.applicationId = convertFromProtoFormat(p.getApplicationId());
return this.applicationId;
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.
the class ApplicationReportPBImpl method getClientToAMToken.
@Override
public Token getClientToAMToken() {
ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
if (this.clientToAMToken != null) {
return this.clientToAMToken;
}
if (!p.hasClientToAmToken()) {
return null;
}
this.clientToAMToken = convertFromProtoFormat(p.getClientToAmToken());
return this.clientToAMToken;
}
Aggregations