CronExpression詳細

5614 ワード

Spring-quarartzにおけるcronExpressionの配置説明
回転:http://www.blogjava.net/javainthink/archive/2006/10/19/76077.html
フィールド
 
許容値
 
許可された特殊文字   0-59  , - * /   0-59  , - * /   0-23  , - * /   1-31  , - * ? / L W C   1-12  JAN-DEC  , - * /   1-7  SUN-SAT  , - * ? / L C # ( )  , 1970-2099  , - * /The'*'character is used to specify all values.For example、“*”in the minute field means.everminute.“*”の文字はすべての値を指定するために使用されます。「*」「*」は分フィールド領域で「毎分」を表します。The'?'character is allowed for the day-off-moth and day-off-week fields.It is used to specify'no speciful value'.This is is eful whern need specifield the the the theremith the thereefield。文字は日付ドメインと日曜日領域だけで使用されます。「非明確な値」を指定するために使用されます。この2つの領域の中の1つを通じていくつかのものを指定する必要があるときに役立ちます。以下の例を見れば、分かります。月の日付と曜日の2つの要素は互いに反発するときには、疑問符を設定する必要があります。このフィールドはThe'-'character is used to specify ranges For example'10-12'in the hour field means'the hors 10,11 and 12'-'の文字を設定したくないということを示しています。例えば、「10-12」は時間領域で「10時、11時、12時」を意味します。in the day-off-week field means「the days Monday,Wedness day,and Fridy」「,」の文字は別の値を指定するために使われます。例えば、「MON,WED,FRI」は、月曜日、水曜日、金曜日を表します。The'/character is Stand.specifiexIndent.30。the seconds field means“the seconds 5,20,35,and 50”.Specifying''before the'/'is equivalent to speciiying 0 isthe value to start with.Essentially,forach field in the expressision,there isisiss s s s s s s s therererererererererererererererereres s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s thethethethethethethethethethethethethethethethethethethethethetherererererererererererererererere23,for days of the month 0 to 31,and for monts 1 to 12.The"/"character simply helps you turn on every"nth"value in the given set.Thus"7/6"in the month field only turns on montth"7"please note that subtlety.The'L'character is allowed for the day-off-mons and day-off-week fields.This character is shart-hand for"last"は、but it has different meaning of the tfields.Folune day"day 28 for Febrauarry on non-leap years.If used in the day-oweek field by itself,it simply means“7”or“SAT”.Butiif used in the day-ooooweek field affteranothehethethethethethethethethethethethethethetheeeeeeeeeeeemmthe the the thethethethethe thethethethethethe aaaaaaaaaaaaaattttttttttttttttttttttttttttttttttttttttttttttt、it is importo not to specify lists、or ranges of values、as you'll get confusing reults.Lは‘last’の略記であり、day-off-monsとday-off-weekドメインを表してもいいですが、二つのフィールドの意味が違っています。例えば、day-off-monshドメインで一ヶ月の最後の日を表しています。day-off-weekドメインでは‘7’または‘SAeoff’を表します。これは1ヶ月の最後の数日間を表しています。例えば、「6 L」は一ヶ月の最後の金曜日を表しています。The'W'character is allowed for the day-off-moneth field.This character is to specify the weefday(Mondy-Friday)neart the given.Asprever.the day。「the nearst weekday to the 15 th of the montth」.So if the 15 th is a Saturday,the trigger will fire on Friday the 14 th.If the 15 th is a Sunday,the trigger will on Monday 16 th.If the 15 th the is the the the the the the the is「a s the value for day-off-month,and the 1 st is a Saturday,the trigger will fire on Monday the 3 rd,as it will not'jump'over the bounday of a month's days.The'W'character canlybe specified the the the mondaynot a range or list of days.The'L'and'W'characters can also be combined for the day-ooff-moth eeeexpression to yield'LW',which trnslates to"last weekday of the moneth".Th'the'the the the the the eeeeeemmmmmmymmmmmmmmmmmmymymythe the the the the the the the the the the the the the the the the thererererererererererererererererererererereree,the value of“6〓3”in the day-off-week field means the third Fridy of the monsh(day 6=Friday and「嗵舷3」=the 3 rd one in the monsh).Othe examples:「2摧if 1」=the first Monday mond「4 the of the」day-off-week in the monsh,The'C'character is allowed for the day-off-moth and day-oooooooove-week fields.Thischaracter isshot- hart- hard for“careendar”.This means values arcacacacalated cacacacacalateteted rateted andandandandandandandandandandandandandand thethetheaaascscscscscscscscscscscscscscsceneneninininininininininininininininininininininininininininininininininininininininininininininininininininininininininininr.A value of「5 C」in the day-off-month field means「the first day includ by the careendar on or after the 5 th」.A value of「1 C」in the day-off-week field means「the first days includ by the careendar on-after 59.の文字について紹介します。-*?/L W C月1-12またはJAN-DEC、-*/月曜日1-7またはSUN-AT、-*?L C菗年(オプション)は空に残して、1970-2099、-*/表現の意味“0 12**”は毎日の昼12時に“0 15 10?*”を触発します。毎日午前10時15分に“0 15 10**?”を触発します。毎日午前10時15分に“0 15 10**?2005”を触発します。毎日午後2時から午後2時59分までの間に、1分間ごとに「0/5 14*?」をトリガします。毎日午後2時から午後2時55分までの間に、5分間ごとに「0/5 14,18*?」をトリガします。毎日午後2時から2時55分までの間と午後6時から6時55分の間に、5分間ごとに「0-5*?」をトリガします。毎年3月の水曜日の午後2時10分と2時44分に「0 15 10?*MON-FRI」をトリガします。月曜日から金曜日までの午前10時15分に「0 15 10 15*?」をトリガします。毎月15日午前10時15分に「0 15 10 L*?」をトリガします。毎月最後の日の午前10時15分に「0 15?*10 L」をトリガします。2002年から2005年までの毎月の最後の金曜日の午前10時15分に「0 15?*6胫3」を触発しました。毎月の第三金曜日午前10時15分に毎日午前6時0*6*を触発します。二時間ごとに0*2*夜11時から朝8時までの間に二時間ずつかかります。朝8時0分23-7/2、8****毎月の4日と毎週の月曜日から水曜日の午前11時0分11*1-3 1月1日午前4時0分4分の1*
Qartzの上位特性はそれだけではなく、1データベース格納2クラスタは3データベースの耐久化タスクをサポートし、trigger 4 triggerの停止、5タスクの任意の追加6はcontriggerより詳細なタスクを実行して、7スレッドの内部データ交換を手配します。