synchronized private void checkWaitingJobs() throws IOException, InterruptedException { Map<String, ControlledJob> oldJobs = null; oldJobs = this.waitingJobs; this.waitingJobs = new Hashtable<String, ControlledJob>(); for (ControlledJob nextJob : oldJobs.values()) { nextJob.checkState(); this.addToQueue(nextJob); } }
synchronized private void checkRunningJobs() throws IOException, InterruptedException { Map<String, ControlledJob> oldJobs = null; oldJobs = this.runningJobs; this.runningJobs = new Hashtable<String, ControlledJob>(); for (ControlledJob nextJob : oldJobs.values()) { nextJob.checkState(); this.addToQueue(nextJob); } }
ControlledJob j = it.next(); LOG.debug("Checking state of job "+j); switch(j.checkState()) { case SUCCESS: successfulJobs.add(j);
ControlledJob j = it.next(); LOG.debug("Checking state of job "+j); switch(j.checkState()) { case SUCCESS: successfulJobs.add(j);
ControlledJob j = it.next(); LOG.debug("Checking state of job "+j); switch(j.checkState()) { case SUCCESS: successfulJobs.add(j);
for (int i = 0; i < n; i++) { pred = this.dependingJobs.get(i); State s = pred.checkState(); if (s == State.WAITING || s == State.READY || s == State.RUNNING) { break; // a pred is still not completed, continue in WAITING
for (int i = 0; i < n; i++) { pred = this.dependingJobs.get(i); State s = pred.checkState(); if (s == State.WAITING || s == State.READY || s == State.RUNNING) { break; // a pred is still not completed, continue in WAITING
for (int i = 0; i < n; i++) { pred = this.dependingJobs.get(i); State s = pred.checkState(); if (s == State.WAITING || s == State.READY || s == State.RUNNING) { break; // a pred is still not completed, continue in WAITING
for (int i = 0; i < n; i++) { pred = this.dependingJobs.get(i); State s = pred.checkState(); if (s == State.WAITING || s == State.READY || s == State.RUNNING) { break; // a pred is still not completed, continue in WAITING
for (int i = 0; i < n; i++) { pred = this.dependingJobs.get(i); State s = pred.checkState(); if (s == State.WAITING || s == State.READY || s == State.RUNNING) { break; // a pred is still not completed, continue in WAITING
ControlledJob j = it.next(); LOG.debug("Checking state of job "+j); switch(j.checkState()) { case SUCCESS: successfulJobs.add(j);