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

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

?? trigger.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;

import java.util.Date;
import java.util.LinkedList;

import org.quartz.utils.Key;


/**
 * <p>
 * The base abstract class to be extended by all <code>Trigger</code>s.
 * </p>
 * 
 * <p>
 * <code>Triggers</code> s have a name and group associated with them, which
 * should uniquely identify them within a single <code>{@link Scheduler}</code>.
 * </p>
 * 
 * <p>
 * <code>Trigger</code>s are the 'mechanism' by which <code>Job</code> s
 * are scheduled. Many <code>Trigger</code> s can point to the same <code>Job</code>,
 * but a single <code>Trigger</code> can only point to one <code>Job</code>.
 * </p>
 * 
 * <p>
 * Triggers can 'send' parameters/data to <code>Job</code>s by placing contents
 * into the <code>JobDataMap</code> on the <code>Trigger</code>.
 * </p>
 * 
 * @see SimpleTrigger
 * @see CronTrigger
 * @see NthIncludedDayTrigger
 * @see TriggerUtils
 * @see JobDataMap
 * @see JobExecutionContext
 * 
 * @author James House
 * @author Sharada Jambula
 */
public abstract class Trigger implements java.io.Serializable, Cloneable,
        Comparable {

    private static final long serialVersionUID = -3904243490805975570L;

    /*
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    *
    * Constants.
    *
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    */

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that the <code>{@link Trigger}</code>
     * has no further instructions.
     * </p>
     */
    public static final int INSTRUCTION_NOOP = 0;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that the <code>{@link Trigger}</code>
     * wants the <code>{@link org.quartz.JobDetail}</code> to re-execute
     * immediately. If not in a 'RECOVERING' or 'FAILED_OVER' situation, the
     * execution context will be re-used (giving the <code>Job</code> the
     * abilitiy to 'see' anything placed in the context by its last execution).
     * </p>
     */
    public static final int INSTRUCTION_RE_EXECUTE_JOB = 1;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that the <code>{@link Trigger}</code>
     * should be put in the <code>COMPLETE</code> state.
     * </p>
     */
    public static final int INSTRUCTION_SET_TRIGGER_COMPLETE = 2;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that the <code>{@link Trigger}</code>
     * wants itself deleted.
     * </p>
     */
    public static final int INSTRUCTION_DELETE_TRIGGER = 3;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that all <code>Trigger</code>
     * s referencing the same <code>{@link org.quartz.JobDetail}</code> as
     * this one should be put in the <code>COMPLETE</code> state.
     * </p>
     */
    public static final int INSTRUCTION_SET_ALL_JOB_TRIGGERS_COMPLETE = 4;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that all <code>Trigger</code>
     * s referencing the same <code>{@link org.quartz.JobDetail}</code> as
     * this one should be put in the <code>ERROR</code> state.
     * </p>
     */
    public static final int INSTRUCTION_SET_TRIGGER_ERROR = 5;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that the <code>Trigger</code>
     * should be put in the <code>ERROR</code> state.
     * </p>
     */
    public static final int INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR = 6;

    /**
     * <p>
     * Instructs the <code>{@link Scheduler}</code> that upon a mis-fire
     * situation, the <code>updateAfterMisfire()</code> method will be called
     * on the <code>Trigger</code> to determine the mis-fire instruction.
     * </p>
     * 
     * <p>
     * In order to see if this instruction fits your needs, you should look at
     * the documentation for the <code>getSmartMisfirePolicy()</code> method
     * on the particular <code>Trigger</code> implementation you are using.
     * </p>
     */
    public static final int MISFIRE_INSTRUCTION_SMART_POLICY = 0;

    /**
     * <p>
     * Indicates that the <code>Trigger</code> is in the "normal" state.
     * </p>
     */
    public static final int STATE_NORMAL = 0;

    /**
     * <p>
     * Indicates that the <code>Trigger</code> is in the "paused" state.
     * </p>
     */
    public static final int STATE_PAUSED = 1;

    /**
     * <p>
     * Indicates that the <code>Trigger</code> is in the "complete" state.
     * </p>
     * 
     * <p>
     * "Complete" indicates that the trigger has not remaining fire-times in
     * its schedule.
     * </p>
     */
    public static final int STATE_COMPLETE = 2;

    /**
     * <p>
     * Indicates that the <code>Trigger</code> is in the "error" state.
     * </p>
     * 
     * <p>
     * A <code>Trigger</code> arrives at the error state when the scheduler
     * attempts to fire it, but cannot due to an error creating and executing
     * its related job. Often this is due to the <code>Job</code>'s
     * class not existing in the classpath.
     * </p>
     * 
     * <p>
     * When the trigger is in the error state, the scheduler will make no
     * attempts to fire it.
     * </p>
     */
    public static final int STATE_ERROR = 3;


    /**
     * <p>
     * Indicates that the <code>Trigger</code> is in the "blocked" state.
     * </p>
     * 
     * <p>
     * A <code>Trigger</code> arrives at the blocked state when the job that
     * it is associated with is a <code>StatefulJob</code> and it is 
     * currently executing.
     * </p>
     *
     * @see StatefulJob
     */
    public static final int STATE_BLOCKED = 4;

    /**
     * <p>
     * Indicates that the <code>Trigger</code> does not exist.
     * </p>
     */
    public static final int STATE_NONE = -1;

    /**
     * The default value for priority.
     */
    public static final int DEFAULT_PRIORITY = 5;

    /*
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    *
    * Data members.
    *
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    */

    private String name;

    private String group = Scheduler.DEFAULT_GROUP;

    private String jobName;

    private String jobGroup = Scheduler.DEFAULT_GROUP;

    private String description;

    private JobDataMap jobDataMap;

    private boolean volatility = false;

    private String calendarName = null;

    private String fireInstanceId = null;

    private int misfireInstruction = MISFIRE_INSTRUCTION_SMART_POLICY;

    private LinkedList triggerListeners = new LinkedList();

    private int priority = DEFAULT_PRIORITY;

    private transient Key key = null;

    /*
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    *
    * Constructors.
    *
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    */



    /**
     * <p>
     * Create a <code>Trigger</code> with no specified name, group, or <code>{@link org.quartz.JobDetail}</code>.
     * </p>
     * 
     * <p>
     * Note that the {@link #setName(String)},{@link #setGroup(String)}and
     * the {@link #setJobName(String)}and {@link #setJobGroup(String)}methods
     * must be called before the <code>Trigger</code> can be placed into a
     * {@link Scheduler}.
     * </p>
     */
    public Trigger() {
        // do nothing...
    }

    /**
     * <p>
     * Create a <code>Trigger</code> with the given name, and group.
     * </p>
     * 
     * <p>
     * Note that the {@link #setJobName(String)}and
     * {@link #setJobGroup(String)}methods must be called before the <code>Trigger</code>
     * can be placed into a {@link Scheduler}.
     * </p>
     * 
     * @param group if <code>null</code>, Scheduler.DEFAULT_GROUP will be used.
     * 
     * @exception IllegalArgumentException
     *              if name is null or empty, or the group is an empty string.
     */
    public Trigger(String name, String group) {
        setName(name);
        setGroup(group);
    }

    /**
     * <p>
     * Create a <code>Trigger</code> with the given name, and group.
     * </p>
     * 
     * @param group if <code>null</code>, Scheduler.DEFAULT_GROUP will be used.
     * 
     * @exception IllegalArgumentException
     *              if name is null or empty, or the group is an empty string.
     */
    public Trigger(String name, String group, String jobName, String jobGroup) {
        setName(name);
        setGroup(group);
        setJobName(jobName);
        setJobGroup(jobGroup);
    }

    /*
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * 
     * Interface.
     * 
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     */

    /**
     * <p>
     * Get the name of this <code>Trigger</code>.
     * </p>
     */
    public String getName() {
        return name;
    }

    /**
     * <p>
     * Set the name of this <code>Trigger</code>.
     * </p>
     * 
     * @exception IllegalArgumentException
     *              if name is null or empty.
     */
    public void setName(String name) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException(
                    "Trigger name cannot be null or empty.");
        }

        this.name = name;
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区四区 | 一区二区在线观看视频在线观看| 国模套图日韩精品一区二区| 日韩欧美中文字幕一区| 免费看欧美美女黄的网站| 欧美一级生活片| 麻豆精品久久精品色综合| 日韩视频在线观看一区二区| 韩国理伦片一区二区三区在线播放| www激情久久| 丰满白嫩尤物一区二区| 中文字幕一区二| 欧美系列亚洲系列| 日本不卡免费在线视频| 久久婷婷综合激情| 成a人片亚洲日本久久| 亚洲综合一区二区| 欧美一区二区视频在线观看 | 亚洲自拍另类综合| 欧美色图12p| 国产美女精品在线| 一区二区三区日韩在线观看| 欧美日韩国产小视频在线观看| 老汉av免费一区二区三区| 中文成人综合网| 欧美色综合久久| 国产一区二三区| 亚洲美女一区二区三区| 日韩精品中午字幕| 99久久国产免费看| 美女精品自拍一二三四| 亚洲视频免费在线| 日韩女优制服丝袜电影| 91丨porny丨蝌蚪视频| 久久精品72免费观看| 亚洲色图视频免费播放| 日韩欧美一级片| 91丨九色丨蝌蚪丨老版| 精品写真视频在线观看| 亚洲一区二区三区美女| 久久先锋影音av鲁色资源| 欧美色精品天天在线观看视频| 国产精品一二一区| 舔着乳尖日韩一区| 中文字幕在线免费不卡| 欧美成人高清电影在线| 在线观看亚洲精品| 不卡的电影网站| 极品少妇xxxx偷拍精品少妇| 亚洲成人av福利| 国产精品久久久久久久久快鸭| 日韩欧美中文字幕一区| 欧美日韩国产色站一区二区三区| 丁香婷婷深情五月亚洲| 精品一区精品二区高清| 丝袜诱惑制服诱惑色一区在线观看| 国产精品国产馆在线真实露脸| 日韩欧美一区二区免费| 欧美人与性动xxxx| 91福利精品视频| 99精品久久久久久| 国产a视频精品免费观看| 国内精品第一页| 久久99国内精品| 日韩av网站在线观看| 五月天国产精品| 亚洲一区二区三区四区在线观看| 亚洲视频网在线直播| 中文字幕视频一区二区三区久| 久久久精品tv| 精品处破学生在线二十三| 日韩无一区二区| 欧美电影免费观看高清完整版在线观看| 91极品视觉盛宴| 色狠狠桃花综合| 91国产精品成人| 欧美性猛片xxxx免费看久爱 | 精品人在线二区三区| 欧美二区乱c少妇| 欧美日韩综合在线| 欧美日韩一区国产| 欧美精品高清视频| 日韩一级免费观看| 国产性色一区二区| 中日韩av电影| 1024成人网| 亚洲福利视频三区| 日本不卡高清视频| 国产麻豆精品久久一二三| 国产精品主播直播| 白白色亚洲国产精品| 色婷婷久久一区二区三区麻豆| 日本韩国欧美一区| 欧美精品123区| 精品乱人伦小说| 国产精品视频一区二区三区不卡| 中文字幕日韩欧美一区二区三区| 一区二区三区免费网站| 日韩经典一区二区| 国产精品综合视频| 91视视频在线观看入口直接观看www | 欧美日韩极品在线观看一区| 日韩一级免费一区| 国产精品欧美精品| 亚洲午夜三级在线| 久久精品国产77777蜜臀| 福利视频网站一区二区三区| 色中色一区二区| 欧美一区二区三区爱爱| 欧美国产视频在线| 亚洲网友自拍偷拍| 国产在线不卡视频| 色噜噜偷拍精品综合在线| 日韩一区二区三区观看| 亚洲国产精品传媒在线观看| 一区二区三区免费在线观看| 国产中文字幕一区| 色婷婷综合久色| 日韩精品一区二区三区swag| 亚洲激情五月婷婷| 免费成人结看片| 色综合天天狠狠| 精品久久久久久无| 亚洲国产一二三| 国产老妇另类xxxxx| 91成人免费电影| 久久综合久久99| 午夜欧美2019年伦理| 成人免费高清视频在线观看| 欧美一区二区三区视频免费 | 欧美日产在线观看| 国产精品乱子久久久久| 免费精品视频最新在线| 在线观看免费一区| 国产精品毛片大码女人| 久久aⅴ国产欧美74aaa| 欧美日韩中字一区| |精品福利一区二区三区| 国产精品一区二区在线播放| 欧美另类变人与禽xxxxx| 日韩久久一区二区| 国产精品99久| 精品国产一区二区三区久久久蜜月 | 久久超碰97中文字幕| 欧美最新大片在线看| 国产精品久久久久影院色老大| 精品写真视频在线观看| 91麻豆精品国产91久久久久久| 成人免费在线视频观看| 国产盗摄视频一区二区三区| 欧美大片在线观看一区| 亚洲 欧美综合在线网络| 色婷婷综合久久久中文字幕| 国产精品久久久一本精品| 国产精品白丝jk黑袜喷水| 精品99久久久久久| 卡一卡二国产精品 | 欧美性三三影院| 一区二区三国产精华液| 91久久精品一区二区三区| 一区二区在线观看视频| 91香蕉视频污在线| 亚洲欧美视频在线观看视频| 成人h动漫精品| 国产精品不卡视频| 99久久国产综合精品女不卡| 中文字幕综合网| 91浏览器入口在线观看| 一级中文字幕一区二区| 欧美午夜电影网| 亚洲成人激情综合网| 6080亚洲精品一区二区| 图片区小说区区亚洲影院| 678五月天丁香亚洲综合网| 麻豆精品视频在线观看| 久久影院视频免费| 国产激情91久久精品导航| 中文字幕乱码一区二区免费| 99久久婷婷国产综合精品| 亚洲欧美日韩国产综合在线 | 欧美a一区二区| 日韩免费高清av| 国产毛片精品视频| 国产欧美日韩中文久久| 99精品久久久久久| 亚洲成人先锋电影| 日韩一级视频免费观看在线| 国产精品一区三区| 国产精品国产自产拍在线| 色婷婷激情一区二区三区| 天天av天天翘天天综合网| 日韩免费视频一区二区| 国产麻豆视频精品| 亚洲精品亚洲人成人网在线播放| 精品视频免费看| 久久99在线观看| 欧美国产1区2区| 精品视频在线免费看| 精品亚洲欧美一区| 亚洲精品日产精品乱码不卡|