|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.engine.server.Schedule
This class gives the necessary information to schedule a task If a date is given, the task will start at the specific date and time. One shot. Others paramters will be ignored. If days of month are given, the task will start all months at the specific days and time. Others paramters will be ignored. If days of week are given, the task will start all week at the specific days and time. Use repeat to repeat the task with a period interval. Intraday only.
| Constructor Summary | |
Schedule()
Construct a schedule |
|
| Method Summary | |
java.util.Date |
getDate()
Get the date |
java.util.Date |
getDateTime()
Return the full date, time comprise |
int[] |
getDaysOfMonth()
Get the days of month |
int[] |
getDaysOfWeek()
Get the days of week |
int |
getHour()
get the hour |
int |
getMinute()
Get the hour |
int |
getPeriod()
Get the period between two repetition. |
int |
getRepeat()
Get the repeat number |
java.lang.String |
getStrDaysOfMonth()
Get the days of month in String format |
java.lang.String |
getStrDaysOfWeek()
Get the days of week in String format |
boolean |
isHttpRequest()
Return true if the scheduling is made by an http request |
boolean |
isValid()
Check if the schedule is valid. |
void |
setDate(java.util.Date date)
Set the date |
void |
setDaysOfMonth(int[] daysOfMonth)
Set the days of month. |
void |
setDaysOfWeek(int[] daysOfWeek)
Set the days of week. |
void |
setHour(int hour)
Set the hour |
void |
setHttpRequest(boolean httpRequest)
The scheduling is made by an http request |
void |
setMinute(int minute)
Set the minute |
void |
setPeriod(int period)
Set the period between two repetition. |
void |
setRepeat(int repeat)
Set the repeat option. |
java.lang.String |
toString()
Convert a schedule to a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Schedule()
| Method Detail |
public void setDate(java.util.Date date)
date - the date (dd/MM/yyyy)public java.util.Date getDate()
public void setDaysOfMonth(int[] daysOfMonth)
daysOfMonth - days of month of the schedulerEntry (-1 if every day).
This attribute is exclusive with daysOfWeek.
Allowed values 1-31.public int[] getDaysOfMonth()
public java.lang.String getStrDaysOfMonth()
public void setHour(int hour)
hour - hour of the schedulerEntry. Allowed values 0-23public int getHour()
public void setRepeat(int repeat)
repeat - the number to repeatpublic int getRepeat()
public void setPeriod(int period)
period - the repetition period in minutepublic int getPeriod()
public void setDaysOfWeek(int[] daysOfWeek)
daysOfWeek - day of week of the schedulerEntry (-1 if every day).
This attribute is exclusive with dayOfMonth.
Allowed values 1-7 (1 = Sunday, 2 = Monday, ...). java.util.Calendar constants can be used.public int[] getDaysOfWeek()
public java.lang.String getStrDaysOfWeek()
public boolean isValid()
public java.util.Date getDateTime()
public java.lang.String toString()
public void setMinute(int minute)
minute - minute of the schedulerEntry. Allowed values 0-59public int getMinute()
public void setHttpRequest(boolean httpRequest)
httpRequest - public boolean isHttpRequest()
true if the scheduling is made by an http request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||