19 package org.turro.scheduler.task.migration;
21 import java.io.IOException;
23 import org.turro.elephant.context.IConstructor;
24 import org.turro.log.WebLoggers;
25 import org.turro.scheduler.motor.Constraints;
26 import org.turro.scheduler.motor.DefaultTask;
27 import org.turro.scheduler.motor.ScheduledSet;
28 import org.turro.scheduler.task.constraints.Month;
29 import org.turro.scheduler.task.constraints.TaskConstraints;
30 import org.turro.scheduler.task.constraints.WeekDay;
31 import org.turro.scheduler.task.settings.TaskSettings;
32 import org.turro.scheduler.task.settings.TaskSettingsSet;
43 return doMigrate(constructor);
53 if(!
"IScheduledTask_QueueSender".equals(def.getImplementation())) {
60 settings.
setData(def.getData());
72 for(org.turro.scheduler.constraints.Month i : dcons.
getMonths()) {
73 cons.
getMonths().add(Month.valueOf(i.name()));
75 for(org.turro.scheduler.constraints.WeekDay i : dcons.
getWeekDays()) {
83 }
catch (IOException ex) {
84 WebLoggers.severe(TaskMigration.class).exception(ex).log();
DayOfMonthConstraint getDaysOfMonth()
WeekDayConstraint getWeekDays()
MonthConstraint getMonths()
MinuteConstraint getMinutes()
HourConstraint getHours()
static void loadSet(IConstructor constructor, Set set)
WeekDayConstraint getWeekDays()
MinuteConstraint getMinutes()
MonthConstraint getMonths()
HourConstraint getHours()
DayOfMonthConstraint getDaysOfMonth()
static TaskSettingsSet migrate(IConstructor constructor)
void setDescription(String description)
TaskConstraints getConstraints()
void setData(String data)
void setImplementation(String implementation)
void setEndDate(Date endDate)
void setActive(boolean active)
void setStartDate(Date startDate)