/** * Add a new job. * * @param aJob * the new job */ synchronized public String addJob(CrunchControlledJob aJob) { String id = this.getNextJobID(); aJob.setJobID(id); aJob.setJobState(State.WAITING); this.addToQueue(aJob); return id; }
/** * Add a new job. * * @param aJob * the new job */ synchronized public String addJob(CrunchControlledJob aJob) { String id = this.getNextJobID(); aJob.setJobID(id); aJob.setJobState(State.WAITING); this.addToQueue(aJob); return id; }