Search in sources :

Example 1 with TaskReportProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder in project hadoop by apache.

the class TaskReportPBImpl method initRunningAttempts.

private void initRunningAttempts() {
    if (this.runningAttempts != null) {
        return;
    }
    TaskReportProtoOrBuilder p = viaProto ? proto : builder;
    List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
    this.runningAttempts = new ArrayList<TaskAttemptId>();
    for (TaskAttemptIdProto c : list) {
        this.runningAttempts.add(convertFromProtoFormat(c));
    }
}
Also used : TaskAttemptIdProto(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptIdProto) TaskAttemptId(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId) TaskReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)

Example 2 with TaskReportProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder in project hadoop by apache.

the class TaskReportPBImpl method getTaskId.

@Override
public TaskId getTaskId() {
    TaskReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.taskId != null) {
        return this.taskId;
    }
    if (!p.hasTaskId()) {
        return null;
    }
    this.taskId = convertFromProtoFormat(p.getTaskId());
    return this.taskId;
}
Also used : TaskReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)

Example 3 with TaskReportProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder in project hadoop by apache.

the class TaskReportPBImpl method initDiagnostics.

private void initDiagnostics() {
    if (this.diagnostics != null) {
        return;
    }
    TaskReportProtoOrBuilder p = viaProto ? proto : builder;
    List<String> list = p.getDiagnosticsList();
    this.diagnostics = new ArrayList<String>();
    for (String c : list) {
        this.diagnostics.add(c);
    }
}
Also used : TaskReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)

Example 4 with TaskReportProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder in project hadoop by apache.

the class TaskReportPBImpl method getCounters.

@Override
public Counters getCounters() {
    TaskReportProtoOrBuilder p = viaProto ? proto : builder;
    convertRawCountersToCounters();
    if (this.counters != null) {
        return this.counters;
    }
    if (!p.hasCounters()) {
        return null;
    }
    this.counters = convertFromProtoFormat(p.getCounters());
    return this.counters;
}
Also used : TaskReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)

Example 5 with TaskReportProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder in project hadoop by apache.

the class TaskReportPBImpl method getSuccessfulAttempt.

@Override
public TaskAttemptId getSuccessfulAttempt() {
    TaskReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.successfulAttemptId != null) {
        return this.successfulAttemptId;
    }
    if (!p.hasSuccessfulAttempt()) {
        return null;
    }
    this.successfulAttemptId = convertFromProtoFormat(p.getSuccessfulAttempt());
    return this.successfulAttemptId;
}
Also used : TaskReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)

Aggregations

TaskReportProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProtoOrBuilder)5 TaskAttemptId (org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId)1 TaskAttemptIdProto (org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptIdProto)1