亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? triggerutils.java

?? Quartz 是個開源的作業調度框架
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/*  * Copyright 2004-2005 OpenSymphony  *  * Licensed under the Apache License, Version 2.0 (the "License"); you may not  * use this file except in compliance with the License. You may obtain a copy  * of the License at  *  *   http://www.apache.org/licenses/LICENSE-2.0  *    * Unless required by applicable law or agreed to in writing, software  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the  * License for the specific language governing permissions and limitations  * under the License. *  *//* * Previously Copyright (c) 2001-2004 James House */package org.quartz;import java.util.Calendar;import java.util.Date;import java.util.LinkedList;import java.util.List;import java.util.TimeZone;/** * <p> * Convenience and utility methods for simplifying the construction and * configuration of <code>{@link Trigger}s</code>. * </p> *  * <p> * Please submit suggestions for additional convenience methods to either the * Quartz user forum or the developer's mail list at * <a href="http://www.sourceforge.net/projects/quartz">source forge</a>. * </p> *  * @see CronTrigger * @see SimpleTrigger *  * @author James House */public class TriggerUtils {    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Constants.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    public static final int SUNDAY = 1;    public static final int MONDAY = 2;    public static final int TUESDAY = 3;    public static final int WEDNESDAY = 4;    public static final int THURSDAY = 5;    public static final int FRIDAY = 6;    public static final int SATURDAY = 7;    public static final int LAST_DAY_OF_MONTH = -1;    public static final long MILLISECONDS_IN_MINUTE = 60l * 1000l;    public static final long MILLISECONDS_IN_HOUR = 60l * 60l * 1000l;    public static final long SECONDS_IN_DAY = 24l * 60l * 60L;    public static final long MILLISECONDS_IN_DAY = SECONDS_IN_DAY * 1000l;    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Interface.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    private static void validateDayOfWeek(int dayOfWeek) {        if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY)                throw new IllegalArgumentException("Invalid day of week.");    }    private static void validateHour(int hour) {        if (hour < 0 || hour > 23)                throw new IllegalArgumentException(                        "Invalid hour (must be >= 0 and <= 23).");    }    private static void validateMinute(int minute) {        if (minute < 0 || minute > 59)                throw new IllegalArgumentException(                        "Invalid minute (must be >= 0 and <= 59).");    }    private static void validateSecond(int second) {        if (second < 0 || second > 59)                throw new IllegalArgumentException(                        "Invalid second (must be >= 0 and <= 59).");    }    private static void validateDayOfMonth(int day) {        if ((day < 1 || day > 31) && day != LAST_DAY_OF_MONTH)                throw new IllegalArgumentException("Invalid day of month.");    }    private static void validateMonth(int month) {        if (month < 1 || month > 12)                throw new IllegalArgumentException(                        "Invalid month (must be >= 1 and <= 12.");    }    private static void validateYear(int year) {        if (year < 1970 || year > 2099)                throw new IllegalArgumentException(                        "Invalid year (must be >= 1970 and <= 2099.");    }    /**     * <p>     * Set the given <code>Trigger</code>'s name to the given value, and its     * group to the default group (<code>Scheduler.DEFAULT_GROUP</code>).     * </p>     *      * @param trig the tigger to change name to      * @param name the new trigger name     */    public static void setTriggerIdentity(Trigger trig, String name) {        setTriggerIdentity(trig, name, Scheduler.DEFAULT_GROUP);    }    /**     * <p>     * Set the given <code>Trigger</code>'s name to the given value, and its     * group to the given group.     * </p>     *      * @param trig the tigger to change name to      * @param name the new trigger name     * @param group the new trigger group     */    public static void setTriggerIdentity(            Trigger trig, String name, String group) {        trig.setName(name);        trig.setGroup(group);    }    /**     * <p>     * Make a trigger that will fire every day at the given time.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the new trigger     */    public static Trigger makeDailyTrigger(int hour, int minute) {        validateHour(hour);        validateMinute(minute);        CronTrigger trig = new CronTrigger();        try {            trig.setCronExpression("0 " + minute + " " + hour + " ? * *");        } catch (Exception ignore) {            return null; /* never happens... */        }        trig.setStartTime(new Date());                return trig;    }    /**     * <p>     * Make a trigger that will fire every day at the given time.     * </p>     *      * <p>     * The generated trigger will not have its group or end-time set.       * The Start time defaults to 'now'.     * </p>     *      * @param trigName the trigger's name      * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the newly created trigger     */    public static Trigger makeDailyTrigger(            String trigName, int hour, int minute) {        Trigger trig = makeDailyTrigger(hour, minute);        trig.setName(trigName);        return trig;    }        /**     * <p>     * Make a trigger that will fire every week at the given day and time.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * @param dayOfWeek (1-7) the day of week upon which to fire     * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the new trigger     *      * @see #SUNDAY     * @see #MONDAY     * @see #TUESDAY     * @see #WEDNESDAY     * @see #THURSDAY     * @see #FRIDAY     * @see #SATURDAY     */    public static Trigger makeWeeklyTrigger(            int dayOfWeek, int hour, int minute) {        validateDayOfWeek(dayOfWeek);        validateHour(hour);        validateMinute(minute);        CronTrigger trig = new CronTrigger();        try {            trig.setCronExpression("0 " + minute + " " + hour + " ? * "                    + dayOfWeek);        } catch (Exception ignore) {            return null; /* never happens... */        }                trig.setStartTime(new Date());        return trig;    }    /**     * <p>     * Make a trigger that will fire every week at the given day and time.     * </p>     *      * <p>     * The generated trigger will not have its group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * @param trigName the trigger's name     * @param dayOfWeek (1-7) the day of week upon which to fire     * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the newly created trigger     *      * @see #SUNDAY     * @see #MONDAY     * @see #TUESDAY     * @see #WEDNESDAY     * @see #THURSDAY     * @see #FRIDAY     * @see #SATURDAY     */    public static Trigger makeWeeklyTrigger(            String trigName, int dayOfWeek, int hour, int minute) {        Trigger trig = makeWeeklyTrigger(dayOfWeek, hour, minute);        trig.setName(trigName);        return trig;    }            /**     * <p>     * Make a trigger that will fire every month at the given day and time.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * <p>     * If the day of the month specified does not occur in a given month, a     * firing will not occur that month. (i.e. if dayOfMonth is specified as     * 31, no firing will occur in the months of the year with fewer than 31     * days).     * </p>     *      * @param dayOfMonth (1-31, or -1) the day of week upon which to fire     * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the newly created trigger     */    public static Trigger makeMonthlyTrigger(            int dayOfMonth, int hour, int minute) {        validateDayOfMonth(dayOfMonth);        validateHour(hour);        validateMinute(minute);        CronTrigger trig = new CronTrigger();        try {            if (dayOfMonth != LAST_DAY_OF_MONTH) trig.setCronExpression("0 "                    + minute + " " + hour + " " + dayOfMonth + " * ?");            else                trig.setCronExpression("0 " + minute + " " + hour + " L * ?");        } catch (Exception ignore) {            return null; /* never happens... */        }                trig.setStartTime(new Date());        return trig;    }    /**     * <p>     * Make a trigger that will fire every month at the given day and time.     * </p>     *      * <p>     * The generated trigger will not have its group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * <p>     * If the day of the month specified does not occur in a given month, a     * firing will not occur that month. (i.e. if dayOfMonth is specified as     * 31, no firing will occur in the months of the year with fewer than 31     * days).     * </p>     *      * @param trigName the trigger's name     * @param dayOfMonth (1-31, or -1) the day of week upon which to fire     * @param hour the hour (0-23) upon which to fire     * @param minute the minute (0-59) upon which to fire     * @return the newly created trigger     */    public static Trigger makeMonthlyTrigger(            String trigName, int dayOfMonth, int hour, int minute) {        Trigger trig = makeMonthlyTrigger(dayOfMonth, hour, minute);        trig.setName(trigName);        return trig;    }        /*     * <p> Make a trigger that will fire every N days at the given time. </p>     *      * <p> TThe generated trigger will not have its name, group,     * start-time and end-time set. </p>     *      * @param hour the hour (0-23) upon which to fire @param minute the minute     * (0-59) upon which to fire @param interval the number of days between     * firings public static Trigger makeDailyTrigger(int interval, int hour,     * int minute) {     *      * SimpleTrigger trig = new SimpleTrigger();     *      * MILLISECONDS_IN_DAY);     * trig.setRepeatCount(SimpleTrigger.REPEAT_INDEFINITELY);     *      * return trig;     *  }     */    /**     * <p>     * Make a trigger that will fire <code>repeatCount</code> times, waiting     * <code>repeatInterval</code> milliseconds between each fire.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *       * @param repeatCount the number of times to fire the trigger     * @param repeatInterval the number of milliseconds to wait between fires     * @return the newly created trigger     */    public static Trigger makeImmediateTrigger(            int repeatCount, long repeatInterval) {        SimpleTrigger trig = new SimpleTrigger();        trig.setStartTime( new Date() );        trig.setRepeatCount(repeatCount);        trig.setRepeatInterval(repeatInterval);        return trig;    }            /**     * <p>     * Make a trigger that will fire <code>repeatCount</code> times, waiting     * <code>repeatInterval</code> milliseconds between each fire.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *     * @param trigName the trigger's name      * @param repeatCount the number of times to fire the trigger     * @param repeatInterval the number of milliseconds to wait between fires     * @return the new trigger     */    public static Trigger makeImmediateTrigger(            String trigName, int repeatCount, long repeatInterval) {        Trigger trig = makeImmediateTrigger(repeatCount, repeatInterval);        trig.setName(trigName);        return trig;    }            /**     * <p>     * Make a trigger that will fire every second, indefinitely.     * </p>     *      * <p>     * The generated trigger will not have its name, group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     * @return the new trigger     */    public static Trigger makeSecondlyTrigger() {        return makeSecondlyTrigger(1, SimpleTrigger.REPEAT_INDEFINITELY);    }    /**     * <p>     * Make a trigger that will fire every second, indefinitely.     * </p>     *      * <p>     * The generated trigger will not have its group,     * or end-time set.  The Start time defaults to 'now'.     * </p>     *      * @param trigName the trigger's name     * @return the new trigger     */    public static Trigger makeSecondlyTrigger(String trigName) {        return makeSecondlyTrigger(

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频免费看| 国产日韩av一区二区| 亚洲午夜电影在线观看| 欧美综合一区二区| 亚洲成av人片在www色猫咪| 欧美高清激情brazzers| 免费成人在线观看视频| 久久色在线观看| aaa亚洲精品| 亚洲一二三四区不卡| 在线成人免费观看| 精品一区二区三区在线播放视频| 国产人成一区二区三区影院| 99久久精品国产导航| 亚洲一区二区中文在线| 日韩精品在线看片z| 丁香婷婷综合色啪| 午夜婷婷国产麻豆精品| 欧美mv日韩mv| 99麻豆久久久国产精品免费优播| 亚洲国产精品视频| 久久这里只有精品视频网| 成人黄色在线视频| 日韩av不卡一区二区| 久久久久久久久久久黄色| 色综合天天狠狠| 麻豆视频观看网址久久| 中文字幕中文字幕一区二区| 欧美日韩一级黄| 国产不卡一区视频| 天堂va蜜桃一区二区三区漫画版| 欧美精品一区二区三| 在线观看免费视频综合| 国产一二三精品| 一区二区三区在线视频观看 | 91精品国产一区二区三区香蕉| 国产真实乱子伦精品视频| 一个色在线综合| 久久久亚洲精品一区二区三区 | 色婷婷久久久综合中文字幕| 老鸭窝一区二区久久精品| 亚洲色图.com| 久久久久97国产精华液好用吗| 欧美伊人久久大香线蕉综合69| 国内精品久久久久影院一蜜桃| 亚洲欧美国产毛片在线| 久久影音资源网| 欧美丰满嫩嫩电影| 色婷婷激情综合| 成人久久视频在线观看| 极品少妇一区二区三区精品视频| 亚洲影院理伦片| 综合中文字幕亚洲| 欧美激情在线一区二区| 精品毛片乱码1区2区3区| 欧美三级韩国三级日本一级| 成人激情综合网站| 国产精品自拍三区| 国产中文字幕精品| 久久av中文字幕片| 日韩极品在线观看| 五月天一区二区三区| 亚洲一区电影777| 亚洲一区二区三区免费视频| 亚洲日本丝袜连裤袜办公室| 国产精品每日更新在线播放网址 | 久久精品夜色噜噜亚洲a∨| 日韩一区国产二区欧美三区| 欧美日韩国产高清一区| 欧美喷潮久久久xxxxx| 色综合久久综合| 久久久精品tv| 欧美性videosxxxxx| 免费在线观看精品| 自拍偷自拍亚洲精品播放| 欧洲视频一区二区| 国产激情视频一区二区三区欧美 | 亚洲尤物视频在线| 中文在线一区二区| 欧美激情在线一区二区| 国产人成一区二区三区影院| 中文字幕欧美激情| 亚洲视频一二三区| 亚洲午夜久久久久久久久电影网 | 日韩一区二区三区在线观看 | 国产成人综合亚洲91猫咪| 国产乱码字幕精品高清av| 国产成人免费视频网站| 成人一区二区三区视频| 91色.com| 欧美年轻男男videosbes| 日韩视频在线永久播放| 欧美成人精品1314www| 欧美精品一区二区三| 国产精品女人毛片| 一区二区三区四区视频精品免费| 亚洲综合图片区| 日韩av中文在线观看| 国产一区欧美日韩| 99re热视频精品| 欧美精品乱码久久久久久按摩| 日韩三区在线观看| 中文字幕欧美国产| 午夜精品免费在线| 精品亚洲porn| 91年精品国产| 欧美另类一区二区三区| 久久久久久久久一| 亚洲精品国产成人久久av盗摄| 4438亚洲最大| 亚洲国产色一区| 国产精品国模大尺度视频| 亚洲视频一区在线观看| 蜜桃av一区二区在线观看| 色视频成人在线观看免| 欧美放荡的少妇| 国产欧美日韩在线视频| 亚洲午夜日本在线观看| 国产高清不卡一区二区| 在线观看国产日韩| 久久精品视频网| 香蕉久久夜色精品国产使用方法 | 国产色产综合产在线视频| 亚洲欧美韩国综合色| 黄色小说综合网站| 91成人在线免费观看| 久久综合久久综合久久综合| 一区二区不卡在线视频 午夜欧美不卡在| 美女视频黄免费的久久| 色综合久久久久综合体桃花网| 精品少妇一区二区| 亚洲午夜精品网| 不卡的av网站| 欧美中文字幕不卡| 1区2区3区精品视频| 成人小视频免费观看| 亚洲日韩欧美一区二区在线| 国产精品久久久久久一区二区三区 | 99久久精品情趣| 欧美成人video| 丝袜美腿亚洲色图| 在线一区二区视频| 国产精品久久久久9999吃药| 日本最新不卡在线| 色婷婷精品久久二区二区蜜臀av| 久久精品欧美一区二区三区麻豆| 亚洲午夜在线视频| 91国产成人在线| 中文字幕日韩av资源站| 国产激情一区二区三区四区 | 欧美日韩在线电影| 亚洲欧洲av在线| 高清国产一区二区三区| 久久久精品人体av艺术| 久久99精品久久久久| 91麻豆精品国产91久久久久久久久| 亚洲欧美日韩国产另类专区| 99riav久久精品riav| 中文字幕在线观看一区二区| 国产成人免费视频精品含羞草妖精 | 亚洲一区中文在线| 色综合久久久久久久久| 中文字幕在线观看不卡视频| 成人做爰69片免费看网站| 久久天天做天天爱综合色| 韩国欧美国产一区| 精品少妇一区二区三区视频免付费| 轻轻草成人在线| 欧美一卡二卡三卡| 麻豆精品久久久| 日韩欧美久久久| 国产夫妻精品视频| 久久精品欧美一区二区三区不卡| 国产精品亚洲专一区二区三区 | 欧洲av在线精品| 午夜精品福利久久久| 欧美高清视频www夜色资源网| 日韩福利视频导航| 精品精品国产高清a毛片牛牛| 麻豆一区二区99久久久久| 久久久久国产免费免费| 成人综合在线网站| 一区二区三区在线观看欧美| 欧洲生活片亚洲生活在线观看| 丝袜亚洲精品中文字幕一区| 国产亚洲一本大道中文在线| 国产福利一区在线| 亚洲精品视频在线看| 在线中文字幕一区二区| 欧美aaaaaa午夜精品| 久久久久久久久岛国免费| 成人毛片视频在线观看| 亚洲黄色在线视频| 欧美一区二区三区视频免费| 久久不见久久见免费视频1| 国产精品麻豆久久久| 欧美日韩视频一区二区| 精品系列免费在线观看| 亚洲精品久久7777| 日韩午夜av一区|