|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.stratum.scheduler.TriggerConfig
This bean represents the settings used to create a Trigger object for use in the Quartz scheduler
This trigger is a Quartz trigger that uses a "Cron-Expression" which is a string comprised of 6 fields separated by white space. The 6 fields are as follows: Field Name Allowed Values Allowed Special Characters seconds 0-59 , - * / minutes 0-59 , - * / hours 0-23 , - * / dayOfMonth 0-31 , - * ? / L C month 1-12 or JAN-DEC , - * / dayOfWeek 1-7 or SUN-SAT , - * ? / L C -The '*' character is used to specify all values. For example, "*" in the minute field means "every minute". -The '?' character is allowed for the day-of-month and day-of-week fields. It is used to specify 'no specific value'. This is useful when you need to specify something in one of the two fileds, but not the other. See the examples below for clarification. -The '-' character is used to specify ranges For example "10-12" in the hour field means "the hours 10, 11 and 12". -The ',' character is used to specify additional values. For example "MON,WED,FRI" in the day-of-week field means "the days Monday, Wednesday, and Friday". -The '/' character is used to specify increments. For example "0/15" in the seconds field means "the seconds 0, 15, 30, and 45". And "5/15" in the seconds field means "the seconds 5, 20, 35, and 50". You can \ also specify '/' after the '*' character - in this case '*' is equivalent to having '0' before the '/'. -The 'L' character is allowed for the day-of-month and day-of-week fields. This character is short-hand for "last", but it has different meaning in each of the two fields. For example, the value "L" in the day-of-month field means "the last day of the month" - day 31 for January, day 28 for February on non-leap years. If used in the day-of-week field by itself, it simply means "7" or "SAT". But if used in the day-of-week field after another value, it means "the last xxx day of the month" - for example "6L" or "FRIL" both mean "the last friday of the month". When using the 'L' option, it is important not to specify lists, or ranges of values, as you'll get confusing results. -The 'C' character is allowed for the day-of-month and day-of-week fields. This character is short-hand for "calendar". This means values are calculated against the associated calendar, if any. If no calendar is associated, then it is equivalent to having an all-inclusive calendar. A value of "5C" in the day-of-month field means "the first day included by the calendar on or after the 5th". A value of "1C" in the day-of-week field means "the first day included by the calendar on or after sunday".
Constructor Summary | |
TriggerConfig()
Default contructor |
Method Summary | |
java.lang.String |
getDayOfMonth()
DOCUMENT ME! |
java.lang.String |
getDayOfWeek()
DOCUMENT ME! |
java.lang.String |
getGroup()
DOCUMENT ME! |
java.lang.String |
getHours()
DOCUMENT ME! |
java.lang.String |
getJobName()
DOCUMENT ME! |
java.lang.String |
getMinutes()
DOCUMENT ME! |
java.lang.String |
getMonth()
DOCUMENT ME! |
java.lang.String |
getName()
DOCUMENT ME! |
java.lang.String |
getSeconds()
DOCUMENT ME! |
void |
setDayOfMonth(java.lang.String s)
Field Name Allowed Values Allowed Special Characters dayOfMonth 0-31 , - * ? / L C |
void |
setDayOfWeek(java.lang.String s)
Field Name Allowed Values Allowed Special Characters dayOfWeek 1-7 or SUN-SAT , - * ? / L C |
void |
setGroup(java.lang.String s)
This is the name of group that the trigger is associated with |
void |
setHours(java.lang.String s)
Field Name Allowed Values Allowed Special Characters hours 0-23 , - * / |
void |
setJobName(java.lang.String s)
This is the name of job that the trigger is associated with |
void |
setMinutes(java.lang.String s)
Field Name Allowed Values Allowed Special Characters minutes 0-59 , - * / |
void |
setMonth(java.lang.String s)
Field Name Allowed Values Allowed Special Characters month 1-12 or JAN-DEC , - * / |
void |
setName(java.lang.String s)
This is the name of the trigger |
void |
setSeconds(java.lang.String s)
Field Name Allowed Values Allowed Special Characters seconds 0-59 , - * / |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TriggerConfig()
Method Detail |
public void setName(java.lang.String s)
s
- trigger namepublic java.lang.String getName()
public void setGroup(java.lang.String s)
s
- group namepublic java.lang.String getGroup()
public void setJobName(java.lang.String s)
s
- job namepublic java.lang.String getJobName()
public void setSeconds(java.lang.String s)
Field Name Allowed Values Allowed Special Characters seconds 0-59 , - * /
s
- secondspublic java.lang.String getSeconds()
public void setMinutes(java.lang.String s)
Field Name Allowed Values Allowed Special Characters minutes 0-59 , - * /
s
- minutespublic java.lang.String getMinutes()
public void setHours(java.lang.String s)
Field Name Allowed Values Allowed Special Characters hours 0-23 , - * /
s
- hourspublic java.lang.String getHours()
public void setDayOfMonth(java.lang.String s)
Field Name Allowed Values Allowed Special Characters dayOfMonth 0-31 , - * ? / L C
s
- day of monthpublic java.lang.String getDayOfMonth()
public void setMonth(java.lang.String s)
Field Name Allowed Values Allowed Special Characters month 1-12 or JAN-DEC , - * /
s
- monthpublic java.lang.String getMonth()
public void setDayOfWeek(java.lang.String s)
Field Name Allowed Values Allowed Special Characters dayOfWeek 1-7 or SUN-SAT , - * ? / L C
s
- day of the weekpublic java.lang.String getDayOfWeek()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |