Search in sources :

Example 1 with JobReportProtoOrBuilder

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;
}
Also used : JobReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder)

Example 2 with JobReportProtoOrBuilder

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;
}
Also used : JobReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder)

Example 3 with JobReportProtoOrBuilder

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));
    }
}
Also used : AMInfo(org.apache.hadoop.mapreduce.v2.api.records.AMInfo) AMInfoProto(org.apache.hadoop.mapreduce.v2.proto.MRProtos.AMInfoProto) JobReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder)

Aggregations

JobReportProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder)3 AMInfo (org.apache.hadoop.mapreduce.v2.api.records.AMInfo)1 AMInfoProto (org.apache.hadoop.mapreduce.v2.proto.MRProtos.AMInfoProto)1