/** * Run the given job. * * <p> * The contract between {@link AbstractJobLauncher#launchJob(JobListener)} and this method is this method * is responsible for for setting {@link JobState.RunningState} properly and upon returning from this method * (either normally or due to exceptions) whatever {@link JobState.RunningState} is set in this method is * used to determine if the job has finished. * </p> * * @param workUnitStream stream of {@link WorkUnit}s of the job */ protected void runWorkUnitStream(WorkUnitStream workUnitStream) throws Exception { runWorkUnits(materializeWorkUnitList(workUnitStream)); }
/** * Run the given job. * * <p> * The contract between {@link AbstractJobLauncher#launchJob(JobListener)} and this method is this method * is responsible for for setting {@link JobState.RunningState} properly and upon returning from this method * (either normally or due to exceptions) whatever {@link JobState.RunningState} is set in this method is * used to determine if the job has finished. * </p> * * @param workUnitStream stream of {@link WorkUnit}s of the job */ protected void runWorkUnitStream(WorkUnitStream workUnitStream) throws Exception { runWorkUnits(materializeWorkUnitList(workUnitStream)); }