|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the configuration interface used to create fixed rate tasks within the Scheduler Service. Fixed rate tasks are scheduled to execute at fixed times (e.g. every hour on the hour or every day at 3:30 AM). Available rates are mintutely, hourly, daily, weekly, monthly (every 30 days), and annually (every 365 days). The same task can be scheduled multiple times to achieve rates in between (e.g. twice a day). If the frequency of the task execution is more important than when the task executes, a fixed delay task may be more appropriate. Also see java.util.Timer for a definition of fixed rate.
Valid values for Minute are 0 to 59 inclusive. Valid values for Hour are 0 to 23 inclusive (note no AM or PM). Valid values for DayOfMonth are 1 to 31 inclusive. Month is specified by org.sape.carbon.core.util.calendar.MonthEnum. DayOfWeek is specified by org.sape.carbon.core.util.calendar.DayOfWeekEnum.
The scheduling behavior of FixedRateTasks are as follows:
FixedDelayTaskConfiguration
,
org.sape.carbon.services.scheduler.ScheduleService
,
DayOfWeekEnum
,
MonthEnum
,
GregorianCalendar
,
Copyright 2002 Sapient
Method Summary | |
Integer |
getDayOfMonth()
Gets the day of the month this task will execute on. |
DayOfWeekEnum |
getDayOfWeek()
Gets the day of week this task will execute on. |
Integer |
getHour()
Gets the hour value this task will execute on. |
Integer |
getMinute()
Gets the minute value this task will execute on. |
MonthEnum |
getMonth()
Gets the month this task will execute on. |
void |
setDayOfMonth(Integer dayOfMonth)
Sets the day of the month this task will execute on. |
void |
setDayOfWeek(DayOfWeekEnum dayOfWeek)
Sets the day of week this task will execute on. |
void |
setHour(Integer hour)
Sets the hour value this task will execute on. |
void |
setMinute(Integer minute)
Sets the minute value this task will execute on. |
void |
setMonth(MonthEnum month)
Sets the month this task will execute on. |
Methods inherited from interface org.sape.carbon.services.scheduler.BaseTaskConfiguration |
getSchedulableComponent, getScheduledMethod, setSchedulableComponent, setScheduledMethod |
Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
Method Detail |
public Integer getMinute()
public void setMinute(Integer minute)
minute
- minute value this task will execute onpublic Integer getHour()
public void setHour(Integer hour)
hour
- hour value this task will execute onpublic Integer getDayOfMonth()
public void setDayOfMonth(Integer dayOfMonth)
dayOfMonth
- day of the month this task will execute onpublic MonthEnum getMonth()
public void setMonth(MonthEnum month)
month
- month this task will execute onpublic DayOfWeekEnum getDayOfWeek()
public void setDayOfWeek(DayOfWeekEnum dayOfWeek)
dayOfWeek
- day of week this task will execute on
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |