/** * @return the jobs in the running state */ public ArrayList<Job> getRunningJobs() { return castToJobList(super.getRunningJobList()); }
/** * @return the jobs in the running state */ public ArrayList<Job> getRunningJobs() { return castToJobList(super.getRunningJobList()); }
/** * @return the jobs in the running state */ public ArrayList<Job> getRunningJobs() { return castToJobList(super.getRunningJobList()); }
/** * @return the jobs in the running state */ public ArrayList<Job> getRunningJobs() { return castToJobList(super.getRunningJobList()); }
/** * @return the jobs in the running state */ public ArrayList<Job> getRunningJobs() { return castToJobList(super.getRunningJobList()); }
/** * Compute the progress of the current job submitted through the JobControl object jc to the JobClient jobClient * * @param jc * The JobControl object that has been submitted * @param jobClient * The JobClient to which it has been submitted * @return The progress as a percentage in double format * @throws IOException * In case any IOException connecting to JobTracker. */ protected double calculateProgress(Set<String> successJobs, JobControl jc, JobClient jobClient) throws IOException { double prog = 0.0; prog += Math.max(jc.getSuccessfulJobList().size(), successJobs.size()); List<ControlledJob> runnJobs = jc.getRunningJobList(); for(ControlledJob cjob: runnJobs) { prog += progressOfRunningJob(cjob, jobClient); } return prog; }
/** * Compute the progress of the current job submitted through the JobControl object jc to the JobClient jobClient * * @param jc * The JobControl object that has been submitted * @param jobClient * The JobClient to which it has been submitted * @return The progress as a percentage in double format * @throws IOException * In case any IOException connecting to JobTracker. */ protected double calculateProgress(Set<String> successJobs, JobControl jc, JobClient jobClient) throws IOException { double prog = 0.0; prog += Math.max(jc.getSuccessfulJobList().size(), successJobs.size()); List<ControlledJob> runnJobs = jc.getRunningJobList(); for(ControlledJob cjob: runnJobs) { prog += progressOfRunningJob(cjob, jobClient); } return prog; }
System.out.println("Jobs in waiting state: " + jobControl.getWaitingJobList().size()); System.out.println("Jobs in ready state: " + jobControl.getReadyJobsList().size()); System.out.println("Jobs in running state: " + jobControl.getRunningJobList().size()); System.out.println("Jobs in success state: " + jobControl.getSuccessfulJobList().size()); System.out.println("Jobs in failed state: " + jobControl.getFailedJobList().size());
List<ControlledJob> runningJobs = jc.getRunningJobList(); for(ControlledJob controlledJob: runningJobs) { String jobId = controlledJob.getJob().getJobID().toString();
List<ControlledJob> runningJobs = jc.getRunningJobList(); for(ControlledJob controlledJob: runningJobs) { String jobId = controlledJob.getJob().getJobID().toString();