use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder in project hadoop by apache.
the class JobReportPBImpl method getJobId.
@Override
public synchronized JobId getJobId() {
JobReportProtoOrBuilder p = viaProto ? proto : builder;
if (this.jobId != null) {
return this.jobId;
}
if (!p.hasJobId()) {
return null;
}
this.jobId = convertFromProtoFormat(p.getJobId());
return this.jobId;
}
use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder in project hadoop by apache.
the class JobReportPBImpl method getJobPriority.
@Override
public synchronized Priority getJobPriority() {
JobReportProtoOrBuilder p = viaProto ? proto : builder;
if (this.jobPriority != null) {
return this.jobPriority;
}
if (!p.hasJobPriority()) {
return null;
}
this.jobPriority = convertFromProtoFormat(p.getJobPriority());
return this.jobPriority;
}
use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder in project hadoop by apache.
the class JobReportPBImpl method initAMInfos.
private synchronized void initAMInfos() {
if (this.amInfos != null) {
return;
}
JobReportProtoOrBuilder p = viaProto ? proto : builder;
List<AMInfoProto> list = p.getAmInfosList();
this.amInfos = new ArrayList<AMInfo>();
for (AMInfoProto amInfoProto : list) {
this.amInfos.add(convertFromProtoFormat(amInfoProto));
}
}
Aggregations