@Override public Counters getCounters() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (this.counters != null) { return this.counters; } if (!p.hasCounters()) { return null; } this.counters = convertFromProtoFormat(p.getCounters()); return this.counters; }
@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; }
@Override public TaskAttemptState getTaskAttemptState() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasTaskAttemptState()) { return null; } return convertFromProtoFormat(p.getTaskAttemptState()); }
@Override public String getDiagnosticInfo() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasDiagnosticInfo()) { return null; } return (p.getDiagnosticInfo()); }
@Override public String getStateString() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasStateString()) { return null; } return (p.getStateString()); }
@Override public Phase getPhase() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasPhase()) { return null; } return convertFromProtoFormat(p.getPhase()); }
@Override public String getNodeManagerHost() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasNodeManagerHost()) { return null; } return p.getNodeManagerHost(); }
@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; }
@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; }