Sets the domain-level cleanup schedule for the selected purge task. Setting the purge task schedule is typically used with getting the purge task schedule.
void setPurgeTaskSchedule(SCHEDULE_PURGE_TASK task, ScheduleVO schedule) throws SUPAdminException;
If successful, returns the schedule for the selected type. If unsuccessful, returns SUPAdminException.
ScheduleVO schedule = new ScheduleVO(); schedule.setDaysofweek(EnumSet.of(DAY_OF_WEEK.MONDAY,DAY_OF_WEEK.FRIDAY)); schedule.setStartDate(new Date()); schedule.setStartTime(new Date()); schedule.setEndDate(new Date()); schedule.setEndTime(new Date()); schedule.setFreq(SCHEDULE_FREQ.INTERVAL); schedule.setInterval(50); supDomain.setPurgeTaskSchedule(SCHEDULE_PURGE_TASK.CLIENT_LOG, schedule); supDomain.setPurgeTaskSchedule(SCHEDULE_PURGE_TASK.ERROR_HISTORY, schedule); supDomain.setPurgeTaskSchedule(SCHEDULE_PURGE_TASK.SUBSCRIPTION, schedule); supDomain.setPurgeTaskSchedule(SCHEDULE_PURGE_TASK.SYNC_CACHE_GROUP, schedule);