Data Archive
- Data Archive 6.4.3 HotFix 1
- All Products
/** * This method should create a schedule for the job. It run the job, it should call * com.applimation.schedule.AMScheduleHandler.runJob api * * @param schedulerBean * schedulerBean should have the parameters required for to schedule the job * 1 SchedulerType * 2 scheduleDate * 3 TimeZone * 4 scheduleNotificationFlag; * 5 scheduleNotificationEmail; * 6 List<Integer> definitionIDs; * 7 scheduleRepeatFlag; * 8 SchedulerOccurrenceType * 9 scheduleOccurrenceValue; * 10 scheduleEndDate; * 11 SchedulerRepeatType * 12 scheduleRepeatValue * 13 scheduleOccurrenceFlag; * 14 notificationEmail; * 15 SchedulerNotificationType * 16 priority; * * @param scheduleId * @param amuId * @return Date (calculated endDate for schedule if number of occurrence are given ) * @throws Exception */ public Date scheduleJob(SchedulerBean schedulerBean, int scheduleId, int amuId) throws Exception; /** * To resume a paused or errored job it should call the * com.applimation.schedule.AMScheduleHandler.resumeJob api * @param jobId * @param amuId * @throws Exception */ public void scheduleResumeJob(int jobId,int amuId) throws Exception; /** * To terminate the job, it should call * com.applimation.schedule.AMScheduleHandler.resumeJob api * @param jobId * @param amuId * @throws Exception */ public void scheduleTerminateJob(int jobId,int amuId) throws Exception; /** * This method should terminate the repeating schedule */ public boolean terminateSchedule(final int scheduleId, int amuId) throws Exception; /** * This method should get the next fire time for this schedule * @param scheduleId * @param amuId * @return * @throws Exception */ public Date getNextFireTime(int scheduleId, int amuId) throws Exception;