Search in sources :

Example 1 with TaskAttemptReportProtoOrBuilder

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

the class TaskAttemptReportPBImpl method getCounters.

@Override
public Counters getCounters() {
    TaskAttemptReportProtoOrBuilder 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 : TaskAttemptReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptReportProtoOrBuilder)

Example 2 with TaskAttemptReportProtoOrBuilder

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

the class TaskAttemptReportPBImpl method getContainerId.

@Override
public ContainerId getContainerId() {
    TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder;
    if (containerId != null) {
        return containerId;
    }
    // Else via proto
    if (!p.hasContainerId()) {
        return null;
    }
    containerId = convertFromProtoFormat(p.getContainerId());
    return containerId;
}
Also used : TaskAttemptReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptReportProtoOrBuilder)

Example 3 with TaskAttemptReportProtoOrBuilder

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

the class TaskAttemptReportPBImpl method getTaskAttemptId.

@Override
public TaskAttemptId getTaskAttemptId() {
    TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.taskAttemptId != null) {
        return this.taskAttemptId;
    }
    if (!p.hasTaskAttemptId()) {
        return null;
    }
    this.taskAttemptId = convertFromProtoFormat(p.getTaskAttemptId());
    return this.taskAttemptId;
}
Also used : TaskAttemptReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptReportProtoOrBuilder)

Aggregations

TaskAttemptReportProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptReportProtoOrBuilder)3