Search in sources :

Example 1 with KillTaskAttemptRequestProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptRequestProtoOrBuilder in project hadoop by apache.

the class KillTaskAttemptRequestPBImpl method getTaskAttemptId.

@Override
public TaskAttemptId getTaskAttemptId() {
    KillTaskAttemptRequestProtoOrBuilder 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 : KillTaskAttemptRequestProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptRequestProtoOrBuilder)

Aggregations

KillTaskAttemptRequestProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptRequestProtoOrBuilder)1