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

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

?? triggerutils.java

?? Java中非常實用流控制工具
?? 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.helpers;import java.util.Calendar;import java.util.Date;import java.util.LinkedList;import java.util.List;import java.util.TimeZone;import org.quartz.CronTrigger;import org.quartz.Scheduler;import org.quartz.SimpleTrigger;import org.quartz.Trigger;/** * <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 *  * @deprecated use org.quartz.TriggerUtils instead! *  * @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;    /**     * Private constructor because this is a pure utility class.     */    private TriggerUtils() {    }    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * 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>     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    public static void setTriggerIdentity(Trigger trig, String name) {        trig.setName(name);        trig.setGroup(Scheduler.DEFAULT_GROUP);    }    /**     * <p>     * Set the given <code>Trigger</code>'s name to the given value, and its     * group to the given group.     * </p>     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    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 still need to 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     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    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... */        }        return trig;    }    /**     * <p>     * Make a trigger that will fire every day at the given time.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.     * </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     *      * @see #SUNDAY     * @see #MONDAY     * @see #TUESDAY     * @see #WEDNESDAY     * @see #THURSDAY     * @see #FRIDAY     * @see #SATURDAY     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    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... */        }        return trig;    }    /**     * <p>     * Make a trigger that will fire every day at the given time.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.     * </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     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    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... */        }        return trig;    }    /*     * <p> Make a trigger that will fire every N days at the given time. </p>     *      * <p> The generated trigger will still need to 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 every second, indefinitely.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.     * </p>     *       *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    public static Trigger makeSecondlyTrigger() {        return makeSecondlyTrigger(1, SimpleTrigger.REPEAT_INDEFINITELY);    }    /**     * <p>     * Make a trigger that will fire every N seconds, indefinitely.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.     * </p>     *      * @param intervalInSeconds     *          the number of seconds between firings     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    public static Trigger makeSecondlyTrigger(int intervalInSeconds) {        return makeSecondlyTrigger(intervalInSeconds,                SimpleTrigger.REPEAT_INDEFINITELY);    }    /**     * <p>     * Make a trigger that will fire every N seconds, with the given number of     * repeats.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.     * </p>     *      * @param intervalInSeconds     *          the number of seconds between firings     * @param repeatCount     *          the number of times to repeat the firing     *      * @deprecated use org.quartz.TriggerUtils instead!     *      */    public static Trigger makeSecondlyTrigger(int intervalInSeconds,            int repeatCount) {        SimpleTrigger trig = new SimpleTrigger();        trig.setRepeatInterval(intervalInSeconds * 1000l);        trig.setRepeatCount(repeatCount);        return trig;    }    /**     * <p>     * Make a trigger that will fire every minute, indefinitely.     * </p>     *      * <p>     * The generated trigger will still need to have its name, group,     * start-time and end-time set.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一二三不卡影片| 91精品国产91综合久久蜜臀| 亚洲亚洲精品在线观看| 久久伊人中文字幕| 欧美日韩成人一区| 成人精品视频一区二区三区| 免费成人在线观看视频| 一区二区三区高清在线| 国产日本亚洲高清| 日韩视频一区二区在线观看| 91麻豆高清视频| 国产成人无遮挡在线视频| 日本女人一区二区三区| 亚洲综合av网| 中文字幕一区二区三区av| 精品福利在线导航| 欧美一级免费大片| 欧美午夜寂寞影院| 不卡欧美aaaaa| 国产乱色国产精品免费视频| 青青草国产精品亚洲专区无| 亚洲一区二区三区免费视频| 亚洲日本在线看| 国产日产欧美一区二区视频| 久久综合精品国产一区二区三区| 91精品国产综合久久福利软件| 91成人网在线| 日本精品免费观看高清观看| 成人国产精品免费观看视频| 国产精品18久久久久久久久久久久 | 国产不卡视频一区| 久久成人久久鬼色| 奇米影视一区二区三区| 性做久久久久久| 亚洲成a人v欧美综合天堂下载| 欧美国产乱子伦| 久久婷婷久久一区二区三区| 精品三级在线看| 欧美成人午夜电影| 日韩一区二区免费视频| 欧美一区二区三区的| 日韩亚洲欧美在线| 日韩精品一区二区三区三区免费| 欧美日韩精品系列| 欧美精品在线观看播放| 欧美一区永久视频免费观看| 欧美日韩亚洲综合一区二区三区| 精品伦理精品一区| 久久新电视剧免费观看| 久久久久久毛片| 国产亚洲精品aa| 国产精品成人网| 亚洲裸体在线观看| 一区二区日韩电影| 石原莉奈在线亚洲三区| 麻豆精品在线看| 国产一区二区三区黄视频 | 精品亚洲免费视频| 韩国av一区二区三区| 国产成人亚洲综合a∨猫咪| 成人精品免费视频| 色综合久久天天| 色狠狠一区二区三区香蕉| 精品污污网站免费看| 欧美一级午夜免费电影| 久久精品一区二区三区不卡| 国产精品高潮久久久久无| 一区二区三区精品在线观看| 日产欧产美韩系列久久99| 国产一区二区三区黄视频 | 91麻豆免费观看| 欧美日韩不卡在线| 久久综合久久鬼色中文字| 国产精品久久久久永久免费观看 | 日韩午夜av电影| 久久久久久黄色| 亚洲三级理论片| 石原莉奈一区二区三区在线观看| 精品一区二区免费在线观看| 91偷拍与自偷拍精品| 欧美一区二区人人喊爽| 国产欧美精品在线观看| 一区二区三区精品视频在线| 精品在线观看免费| 色综合久久天天| 2020国产精品| 亚洲欧美二区三区| 老司机精品视频导航| 91视视频在线观看入口直接观看www| 欧美三级在线播放| 国产精品女主播av| 美腿丝袜在线亚洲一区| 久久综合成人精品亚洲另类欧美| 亚洲视频免费观看| 国产乱人伦偷精品视频免下载| 欧美综合一区二区三区| 日本一区二区成人在线| 日韩精品久久理论片| 97精品国产97久久久久久久久久久久 | 久久久久久99久久久精品网站| 成人欧美一区二区三区1314| 久久精品99国产精品| 在线观看视频一区二区| 国产欧美一区二区精品婷婷| 日韩和欧美一区二区| 色哟哟国产精品| 国产欧美精品一区二区三区四区| 男女男精品视频网| 欧美午夜片在线看| 亚洲少妇中出一区| 国产91丝袜在线播放0| 日韩精品一区二区三区四区视频| 亚洲一区在线观看免费观看电影高清 | 黄一区二区三区| 91.麻豆视频| 亚洲最大成人网4388xx| 成人黄页在线观看| 欧美激情艳妇裸体舞| 国内外精品视频| www日韩大片| 黄色小说综合网站| 欧美精品一区二区三区视频| 日本一区中文字幕| 欧美福利视频一区| 天天影视涩香欲综合网| 欧美怡红院视频| 亚洲精品久久久蜜桃| 91在线免费播放| 亚洲日本丝袜连裤袜办公室| 99热99精品| 亚洲欧洲日韩综合一区二区| 91丨九色丨尤物| 亚洲啪啪综合av一区二区三区| 99国产精品国产精品久久| 亚洲精品一区在线观看| 国产麻豆欧美日韩一区| 久久奇米777| 国产久卡久卡久卡久卡视频精品| 欧美xxx久久| 久久99精品国产麻豆婷婷洗澡| 精品美女一区二区三区| 国产呦萝稀缺另类资源| 久久在线免费观看| 国产成人h网站| 中文字幕在线免费不卡| 精品少妇一区二区三区免费观看 | 色88888久久久久久影院按摩| 亚洲精品国产第一综合99久久| 一本到不卡精品视频在线观看| 亚洲视频资源在线| 国产很黄免费观看久久| 欧美国产欧美综合| 色综合欧美在线视频区| 亚洲国产一区二区三区青草影视| 欧美军同video69gay| 九九热在线视频观看这里只有精品| 精品国产网站在线观看| 成人午夜激情视频| 亚洲女同女同女同女同女同69| 欧美在线一二三四区| 免费人成在线不卡| 久久久99久久| 一本一道综合狠狠老| 亚洲国产一区二区三区青草影视| 91精品国产综合久久香蕉麻豆| 精品午夜久久福利影院| 波波电影院一区二区三区| 国产成人啪免费观看软件| 中文字幕在线不卡国产视频| 欧美中文字幕一区| 久久精品国产免费看久久精品| 久久午夜国产精品| 成人av在线观| 伊人开心综合网| 91福利社在线观看| 午夜影院久久久| 欧美在线视频全部完| 一区二区三区小说| 粉嫩在线一区二区三区视频| xvideos.蜜桃一区二区| 轻轻草成人在线| 亚洲国产精品成人久久综合一区| 国产成人亚洲综合a∨婷婷图片| 欧美国产综合色视频| 91香蕉视频在线| 首页国产欧美日韩丝袜| 国产日韩v精品一区二区| 青椒成人免费视频| 国产成人在线视频网址| 99久久777色| 日本一区二区综合亚洲| 1024国产精品| 毛片av一区二区三区| 欧美挠脚心视频网站| 91精品国产综合久久香蕉的特点| 日韩三级.com| 亚洲另类在线一区| 免费av成人在线| 欧美一区二区三区视频在线观看| 国产精品―色哟哟|