785786787788789790791792793
new ArrayList<ThriftJobInProgress>(jobs.size()); for (JobInProgress job : jobs) { ret.add(JTThriftUtils.toThrift(job, false, jobTracker)); } return new ThriftJobList(ret); } }); }
804805806807808809810811812
863864865866867868869870871
(state == null || state == JTThriftUtils.jobRunStateToThrift(jobStatus.getRunState()))) { // No need to lock ret.add(JTThriftUtils.toThrift(jobTracker.getJobProfile(jobID), jobStatus)); } } return new ThriftJobList(ret); } }); }
883884885886887888889890891
for (JobInProgress job : jobs) { if (job.getStatus().getRunState() == JobStatus.FAILED) { ret.add(JTThriftUtils.toThrift(job, false, jobTracker)); } } return new ThriftJobList(ret); } }); }
903904905906907908909910911
for (JobInProgress job : jobs) { if (job.getStatus().getRunState() == JobStatus.KILLED) { ret.add(JTThriftUtils.toThrift(job, false, jobTracker)); } } return new ThriftJobList(ret); } }); }
923924925926927928929930931
List<ThriftJobInProgress> ret = new ArrayList<ThriftJobInProgress>(); for (JobInProgress job : jobList) { ret.add(JTThriftUtils.toThrift(job, false, jobTracker)); } return new ThriftJobList(ret); } }); }