1 package net.sf.appstatus.core.batch; 2 3 import java.util.Date; 4 import java.util.List; 5 6 /** 7 * Interface which must be implemented to read a set of execution expr. 8 * 9 * @author Idriss Neumann 10 * 11 */ 12 public interface IBatchScheduleManager { 13 /** 14 * Getting the batch's configurations. 15 */ 16 List<IBatchConfiguration> getBatchConfigurations(); 17 18 /** 19 * Convert the execution schedule (cron for example). 20 * 21 * @param schedule 22 * Schedule string 23 * @param lastExecution 24 * @return the next date which correspond to the schedule 25 */ 26 Date getNextDate(String schedule, Date lastExecution); 27 }