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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? triggerutils.java

?? Quartz 是個開源的作業(yè)調(diào)度框架
?? 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(

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲欧美中文三级| 国产精品卡一卡二卡三| 国产宾馆实践打屁股91| 亚洲综合清纯丝袜自拍| 精品久久99ma| 欧美片网站yy| 成人开心网精品视频| 蜜桃久久精品一区二区| 一区二区三区在线观看动漫| 国产欧美视频在线观看| 国产午夜精品一区二区三区视频 | 性感美女久久精品| 国产精品国产a级| 亚洲精品在线免费观看视频| 欧美日韩在线免费视频| 粉嫩绯色av一区二区在线观看| 91麻豆福利精品推荐| 久久99精品国产麻豆婷婷 | 自拍偷在线精品自拍偷无码专区| 欧美一级午夜免费电影| 色偷偷久久人人79超碰人人澡| 国产一区二区三区四区五区入口| 天堂精品中文字幕在线| 亚洲综合视频网| 1000精品久久久久久久久| 久久久91精品国产一区二区精品| 欧美一区二区三区色| 欧美性大战久久久| 91麻豆国产自产在线观看| 国产成人午夜99999| 国产又黄又大久久| 久草这里只有精品视频| 蜜桃av噜噜一区| 丝袜美腿亚洲色图| 日韩精品一二三区| 视频一区国产视频| 亚洲成av人片一区二区三区| 亚洲一区二区美女| 亚洲国产日产av| 亚洲国产精品自拍| 亚洲成人动漫av| 琪琪久久久久日韩精品| 久久精品av麻豆的观看方式| 六月丁香婷婷久久| 国产精品1区二区.| 成人午夜在线免费| 色综合久久久久| 欧美日韩国产一级二级| 在线不卡中文字幕| 日韩美女一区二区三区| 亚洲精品一区二区精华| 国产午夜精品在线观看| 中文字幕一区二区三区乱码在线| 亚洲女同一区二区| 亚洲高清免费在线| 日产国产欧美视频一区精品 | 国产成+人+日韩+欧美+亚洲| 夫妻av一区二区| 成人99免费视频| 色综合久久中文综合久久牛| 在线亚洲免费视频| 欧美日本一区二区| 精品美女被调教视频大全网站| 26uuu亚洲综合色| 久久网站最新地址| 国产精品久久久久久久久快鸭| 自拍偷拍亚洲激情| 日韩avvvv在线播放| 国产精品综合久久| 色综合天天综合在线视频| 欧美午夜精品久久久久久超碰| 6080国产精品一区二区| 精品国产露脸精彩对白| 中文字幕亚洲不卡| 日韩影视精彩在线| 成人性生交大片免费看在线播放| 色综合久久中文综合久久牛| 日韩欧美一二区| 国产精品麻豆久久久| 亚洲不卡一区二区三区| 国产不卡视频在线播放| 欧美日韩一区二区在线观看视频| 日韩精品一区二区三区在线| 中文字幕不卡三区| 日韩电影在线一区二区三区| 国产suv精品一区二区883| 欧美色偷偷大香| 中国色在线观看另类| 丝瓜av网站精品一区二区| 国产一区二区在线影院| 欧美系列在线观看| 久久久久久久综合日本| 天天色天天操综合| av网站免费线看精品| 日韩情涩欧美日韩视频| 亚洲欧美另类久久久精品| 精品一区二区三区的国产在线播放| 不卡一区中文字幕| 欧美精品一区二区三| 一区二区欧美国产| 岛国一区二区在线观看| 91精品中文字幕一区二区三区| 国产精品不卡视频| 激情欧美一区二区| 欧美久久一二区| 中文字幕综合网| 国产另类ts人妖一区二区| 欧美日韩二区三区| 亚洲免费大片在线观看| 国产激情视频一区二区在线观看 | 丝袜亚洲另类欧美综合| 不卡在线观看av| 国产欧美日韩久久| 美女脱光内衣内裤视频久久影院| 欧美色精品在线视频| 成人欧美一区二区三区| 成人在线视频一区二区| 欧美精品一区二区三区蜜桃| 日韩av成人高清| 欧美肥大bbwbbw高潮| 一区二区三区免费观看| av电影在线观看完整版一区二区| 国产欧美一区二区精品秋霞影院| 九九精品一区二区| 日韩免费成人网| 久久电影网电视剧免费观看| 91精品国产手机| 午夜一区二区三区视频| 欧美三级电影一区| 亚洲精品成人精品456| 91猫先生在线| 亚洲欧美偷拍三级| 91网页版在线| 亚洲欧美日本在线| 91浏览器在线视频| 亚洲制服欧美中文字幕中文字幕| 91视频免费看| 一区二区在线观看av| 色婷婷国产精品| 一区二区视频在线| 欧美日韩精品免费观看视频| 婷婷国产在线综合| 日韩区在线观看| 国产在线一区二区| 国产精品三级av| 色偷偷一区二区三区| 亚洲地区一二三色| 欧美成人免费网站| 国产精品资源网| 中文字幕不卡在线观看| 色婷婷国产精品久久包臀| 亚州成人在线电影| 欧美电视剧在线观看完整版| 国产在线不卡视频| 国产精品夫妻自拍| 欧美制服丝袜第一页| 日本系列欧美系列| 国产网站一区二区| 色综合天天做天天爱| 午夜在线电影亚洲一区| 精品国产电影一区二区| 国产成人8x视频一区二区| 一区二区三区在线播放| 日韩一区二区精品在线观看| 黄色资源网久久资源365| 国产精品区一区二区三区| 91久久精品一区二区三区| 日韩高清不卡在线| 国产日韩精品一区二区三区在线| 91日韩在线专区| 麻豆精品视频在线观看| 国产精品美女www爽爽爽| 欧美日韩精品三区| 国产精品18久久久久| 亚洲综合色视频| 久久亚洲欧美国产精品乐播| 色综合中文综合网| 国产三级久久久| 欧美在线观看视频一区二区三区| 免费在线观看视频一区| 国产精品成人免费在线| 欧美一卡二卡三卡四卡| 成人av在线电影| 免费观看久久久4p| 亚洲图片激情小说| 精品国产凹凸成av人导航| 色婷婷综合久色| 国产呦萝稀缺另类资源| 亚洲福利电影网| 国产精品久久一卡二卡| 日韩视频在线永久播放| 99久久婷婷国产| 国产自产视频一区二区三区| 一区二区三区高清在线| 国产午夜精品在线观看| 在线不卡中文字幕| 一本久久a久久免费精品不卡| 另类调教123区| 午夜欧美一区二区三区在线播放| 国产精品久久影院|