public class ComplexJobTrigger extends JobTrigger
Modifier and Type | Field and Description |
---|---|
static int |
APRIL |
static int |
AUGUST |
static int |
DECEMBER |
static int |
FEBRUARY |
static int |
FRIDAY |
static int |
JANUARY |
static int |
JULY |
static int |
JUNE |
static int |
MARCH |
static int |
MAY |
static int |
MONDAY |
static int |
NOVEMBER |
static int |
OCTOBER |
static int |
SATURDAY |
static int |
SEPTEMBER |
static int |
SUNDAY |
static int |
THURSDAY |
static int |
TUESDAY |
static int |
WEDNESDAY |
ONCE_NOW
Constructor and Description |
---|
ComplexJobTrigger()
Creates a default recurrence of every day of every year at midnight.
|
ComplexJobTrigger(Integer year,
Integer month,
Integer dayOfMonth,
Integer dayOfWeek,
Integer hourOfDay)
Creates a recurrence for the specified date/time.
|
Modifier and Type | Method and Description |
---|---|
void |
addDayOfMonthRecurrence(Integer... recurrence)
Add a recurrence to the day of week recurrence.
|
void |
addDayOfMonthRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the day of month recurrence.
|
void |
addDayOfWeekRecurrence(Integer... recurrence)
Add a recurrence to the day of week recurrence (1=Sunday, 7=Saturday).
|
void |
addDayOfWeekRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the day of week recurrence.
|
void |
addHourlyRecurrence(Integer... recurrence)
Add a recurrence to the minute recurrence.
|
void |
addHourlyRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the hourly recurrence.
|
void |
addMinuteRecurrence(Integer... recurrence)
Add a recurrence to the minute recurrence.
|
void |
addMinuteRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the minute recurrence.
|
void |
addMonthlyRecurrence(Integer... recurrence)
Add a recurrence to the monthly recurrence (1=January, 12=December).
|
void |
addMonthlyRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the monthly recurrence.
|
void |
addSecondRecurrence(Integer... recurrence)
Add a recurrence to the second recurrence.
|
void |
addSecondRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the second recurrence.
|
void |
addYearlyRecurrence(Integer... recurrence)
Add a recurrence to the yearly recurrences.
|
void |
addYearlyRecurrence(ITimeRecurrence recurrence)
Add a recurrence to the yearly recurrences.
|
DayOfMonthWrapper |
getDayOfMonthRecurrences()
Returns the day of month recurrence.
|
DayOfWeekWrapper |
getDayOfWeekRecurrences()
Returns the day of week recurrence.
|
HourlyWrapper |
getHourlyRecurrences()
Returns the day of minute recurrence.
|
MinuteWrapper |
getMinuteRecurrences() |
MonthlyWrapper |
getMonthlyRecurrences()
Returns the monthly recurrence.
|
SecondWrapper |
getSecondRecurrences()
Returns the day of hourly recurrence.
|
YearlyWrapper |
getYearlyRecurrences()
Returns the yearly recurrence.
|
void |
setDayOfMonthRecurrence(Integer... recurrence)
Overrides any previously applied day of month recurrences with the provided recurrence.
|
void |
setDayOfMonthRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied day of month recurrences with the provided recurrence.
|
void |
setDayOfWeekRecurrence(Integer... recurrence)
Overrides any previously applied day of week recurrences with the provided recurrence (1=Sunday, 7=Saturday).
|
void |
setDayOfWeekRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied day of week recurrences with the provided recurrence.
|
void |
setHourlyRecurrence(Integer... recurrence)
Overrides any previously applied hourly recurrences with the provided recurrence.
|
void |
setHourlyRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied hourly recurrences with the provided recurrence.
|
void |
setMinuteRecurrence(Integer... recurrence)
Overrides any previously applied minute recurrences with the provided recurrence.
|
void |
setMinuteRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied minute recurrences with the provided recurrence.
|
void |
setMonthlyRecurrence(Integer... recurrence)
Overrides any previously applied monthly recurrences with the provided recurrence (1=January, 12=December).
|
void |
setMonthlyRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied monthly recurrences with the provided recurrence.
|
void |
setSecondRecurrence(Integer... recurrence)
Overrides any previously applied second recurrences with the provided recurrence.
|
void |
setSecondRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied second recurrences with the provided recurrence.
|
void |
setYearlyRecurrence(Integer... recurrence)
Overrides any previously applied yearly recurrences with the provided recurrence.
|
void |
setYearlyRecurrence(ITimeRecurrence recurrence)
Overrides any previously applied yearly recurrences with the provided recurrence.
|
String |
toString() |
getCronString, getDuration, getEndTime, getStartTime, getUiPassParam, setCronString, setDuration, setEndTime, setStartTime, setUiPassParam
public static final int SUNDAY
public static final int MONDAY
public static final int TUESDAY
public static final int WEDNESDAY
public static final int THURSDAY
public static final int FRIDAY
public static final int SATURDAY
public static final int JANUARY
public static final int FEBRUARY
public static final int MARCH
public static final int APRIL
public static final int MAY
public static final int JUNE
public static final int JULY
public static final int AUGUST
public static final int SEPTEMBER
public static final int OCTOBER
public static final int NOVEMBER
public static final int DECEMBER
public ComplexJobTrigger(Integer year, Integer month, Integer dayOfMonth, Integer dayOfWeek, Integer hourOfDay)
year
- the year to occur. If null recurrence will be every year.month
- the month to occur. If null recurrence will be every month.dayOfMonth
- the day of month to occur. If null recurrence will be every day of month. If specified day of week must be
null.dayOfWeek
- the day of week to occur. If null recurrence will be every day of week. If specified day of month must be
null.hourOfDay
- the hour of day to occur. If null recurrence will be every hour of day.public ComplexJobTrigger()
public void addYearlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the yearly recurrence. If null no addition occurs.public void addYearlyRecurrence(Integer... recurrence)
recurrence
- the yearly recurrence. If null no addition occurs.public void setYearlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the yearly recurrence. If null it will recur every year.public void setYearlyRecurrence(Integer... recurrence)
recurrence
- the yearly recurrence. If not recurrences are provided it will recur every year.public void addMonthlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the monthly recurrence. If null no addition occurs.public void addMonthlyRecurrence(Integer... recurrence)
recurrence
- the monthly recurrence. If null no addition occurs.public void setMonthlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the monthly recurrence. If null it will recur every month.public void setMonthlyRecurrence(Integer... recurrence)
recurrence
- the monthly recurrence. If no recurrences are provided it will recur every month.public void addDayOfMonthRecurrence(ITimeRecurrence recurrence)
recurrence
- the day of month recurrences. If null no modification is made to this object.public void addDayOfMonthRecurrence(Integer... recurrence)
recurrence
- the day of week recurrences. If null no modification is made to this object.public void setDayOfMonthRecurrence(ITimeRecurrence recurrence)
recurrence
- the day of month recurrences. If null it will recur every day of month.public void setDayOfMonthRecurrence(Integer... recurrence)
recurrence
- the day of month recurrences. If no days of month are provided it will recur every day of month.public void addDayOfWeekRecurrence(ITimeRecurrence recurrence)
recurrence
- the day of week recurrences. If null no modification is made to this object.public void addDayOfWeekRecurrence(Integer... recurrence)
recurrence
- the day of week recurrences. If null no modification is made to this object.public void setDayOfWeekRecurrence(ITimeRecurrence recurrence)
recurrence
- the day of week recurrences. If null it will recur every day of week.public void setDayOfWeekRecurrence(Integer... recurrence)
recurrence
- the day of week recurrences. If no days of week are provided it will recur every day of the week.public void addHourlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the hourly recurrence. If null no modification is made to this object.public void addHourlyRecurrence(Integer... recurrence)
recurrence
- the minute recurrence. If null no modification is made to this object.public void setHourlyRecurrence(ITimeRecurrence recurrence)
recurrence
- the hourly recurrence. If null it will recur every hourpublic void setHourlyRecurrence(Integer... recurrence)
recurrence
- the hourly recurrence. If no recurrence is provided it will recur every hour.public void addMinuteRecurrence(ITimeRecurrence recurrence)
recurrence
- the minute recurrence. If null no modification is made to this object.public void addMinuteRecurrence(Integer... recurrence)
recurrence
- the minute recurrence. If null no modification is made to this object.public void setMinuteRecurrence(ITimeRecurrence recurrence)
recurrence
- the minute recurrence. If null it will recur every minute.public void setMinuteRecurrence(Integer... recurrence)
recurrence
- the minute recurrence. If no recurrence is provided it will recur every minute.public void addSecondRecurrence(ITimeRecurrence recurrence)
recurrence
- the second recurrence. If null no modification is made to this object.public void addSecondRecurrence(Integer... recurrence)
recurrence
- the second recurrence. If null no modification is made to this object.public void setSecondRecurrence(ITimeRecurrence recurrence)
recurrence
- the second recurrence. If null it will recur every second.public void setSecondRecurrence(Integer... recurrence)
recurrence
- the second recurrence. If no recurrence is provided it will recur every second.public YearlyWrapper getYearlyRecurrences()
public MonthlyWrapper getMonthlyRecurrences()
public DayOfMonthWrapper getDayOfMonthRecurrences()
public DayOfWeekWrapper getDayOfWeekRecurrences()
public SecondWrapper getSecondRecurrences()
public HourlyWrapper getHourlyRecurrences()
public MinuteWrapper getMinuteRecurrences()