@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; }
@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; }
private void mergeLocalToBuilder() { if (this.taskId != null) { builder.setTaskId(convertToProtoFormat(this.taskId)); } convertRawCountersToCounters(); if (this.counters != null) { builder.setCounters(convertToProtoFormat(this.counters)); } if (this.runningAttempts != null) { addRunningAttemptsToProto(); } if (this.successfulAttemptId != null) { builder.setSuccessfulAttempt(convertToProtoFormat(this.successfulAttemptId)); } if (this.diagnostics != null) { addDiagnosticsToProto(); } }
private void mergeLocalToBuilder() { if (this.taskId != null) { builder.setTaskId(convertToProtoFormat(this.taskId)); } convertRawCountersToCounters(); if (this.counters != null) { builder.setCounters(convertToProtoFormat(this.counters)); } if (this.runningAttempts != null) { addRunningAttemptsToProto(); } if (this.successfulAttemptId != null) { builder.setSuccessfulAttempt(convertToProtoFormat(this.successfulAttemptId)); } if (this.diagnostics != null) { addDiagnosticsToProto(); } }