Search in sources :

Example 1 with TaskAttemptIdProto

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptIdProto 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)

Aggregations

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