@Override
        public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request) throws IOException {
            TaskAttemptId taskAttemptId = request.getTaskAttemptId();

            Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId(), true);

            GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
            response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId())
                    .getAttempt(taskAttemptId)
                    .getDiagnostics());
            return response;
        }
This module is responsible for talking to the
JobClient (user facing).
history-server/src/main/java/net/qihoo/hbox/jobhistory/HistoryClientService.java