Esempio n. 1
0
        /// <exception cref="System.IO.IOException"/>
        public virtual GetJobReportResponse GetJobReport(GetJobReportRequest request)
        {
            JobReport jobReport = recordFactory.NewRecordInstance <JobReport>();

            jobReport.SetJobId(request.GetJobId());
            jobReport.SetJobState(jobState);
            jobReport.SetUser(applicationReport.GetUser());
            jobReport.SetStartTime(applicationReport.GetStartTime());
            jobReport.SetDiagnostics(applicationReport.GetDiagnostics());
            jobReport.SetJobName(applicationReport.GetName());
            jobReport.SetTrackingUrl(applicationReport.GetTrackingUrl());
            jobReport.SetFinishTime(applicationReport.GetFinishTime());
            GetJobReportResponse resp = recordFactory.NewRecordInstance <GetJobReportResponse>
                                            ();

            resp.SetJobReport(jobReport);
            return(resp);
        }
Esempio n. 2
0
        public static JobReport NewJobReport(JobId jobId, string jobName, string userName
                                             , JobState state, long submitTime, long startTime, long finishTime, float setupProgress
                                             , float mapProgress, float reduceProgress, float cleanupProgress, string jobFile
                                             , IList <AMInfo> amInfos, bool isUber, string diagnostics)
        {
            JobReport report = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <JobReport>();

            report.SetJobId(jobId);
            report.SetJobName(jobName);
            report.SetUser(userName);
            report.SetJobState(state);
            report.SetSubmitTime(submitTime);
            report.SetStartTime(startTime);
            report.SetFinishTime(finishTime);
            report.SetSetupProgress(setupProgress);
            report.SetCleanupProgress(cleanupProgress);
            report.SetMapProgress(mapProgress);
            report.SetReduceProgress(reduceProgress);
            report.SetJobFile(jobFile);
            report.SetAMInfos(amInfos);
            report.SetIsUber(isUber);
            report.SetDiagnostics(diagnostics);
            return(report);
        }