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));
}
}
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;
}
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);
}
}
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;
}
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;
}
Aggregations