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

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

?? stdscheduler.java

?? Java中非常實用流控制工具
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* 
 * 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.impl;

import java.util.Date;
import java.util.List;
import java.util.Set;

import org.quartz.Calendar;
import org.quartz.JobDataMap;
import org.quartz.JobDetail;
import org.quartz.JobListener;
import org.quartz.Scheduler;
import org.quartz.SchedulerContext;
import org.quartz.SchedulerException;
import org.quartz.SchedulerListener;
import org.quartz.SchedulerMetaData;
import org.quartz.Trigger;
import org.quartz.TriggerListener;
import org.quartz.UnableToInterruptJobException;
import org.quartz.core.QuartzScheduler;
import org.quartz.core.SchedulingContext;
import org.quartz.spi.JobFactory;

/**
 * <p>
 * An implementation of the <code>Scheduler</code> interface that directly
 * proxies all method calls to the equivalent call on a given <code>QuartzScheduler</code>
 * instance.
 * </p>
 * 
 * @see org.quartz.Scheduler
 * @see org.quartz.core.QuartzScheduler
 * @see org.quartz.core.SchedulingContext
 * 
 * @author James House
 */
public class StdScheduler implements Scheduler {

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

    private QuartzScheduler sched;

    private SchedulingContext schedCtxt;

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

    /**
     * <p>
     * Construct a <code>StdScheduler</code> instance to proxy the given
     * <code>QuartzScheduler</code> instance, and with the given <code>SchedulingContext</code>.
     * </p>
     */
    public StdScheduler(QuartzScheduler sched, SchedulingContext schedCtxt) {
        this.sched = sched;
        this.schedCtxt = schedCtxt;
    }

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

    /**
     * <p>
     * Returns the name of the <code>Scheduler</code>.
     * </p>
     */
    public String getSchedulerName() {
        return sched.getSchedulerName();
    }

    /**
     * <p>
     * Returns the instance Id of the <code>Scheduler</code>.
     * </p>
     */
    public String getSchedulerInstanceId() {
        return sched.getSchedulerInstanceId();
    }

    public SchedulerMetaData getMetaData() {
        return new SchedulerMetaData(getSchedulerName(),
                getSchedulerInstanceId(), getClass(), false, isStarted(), 
                isInStandbyMode(), isShutdown(), sched.runningSince(), 
                sched.numJobsExecuted(), sched.getJobStoreClass(), 
                sched.supportsPersistence(), sched.getThreadPoolClass(), 
                sched.getThreadPoolSize(), sched.getVersion());

    }

    /**
     * <p>
     * Returns the <code>SchedulerContext</code> of the <code>Scheduler</code>.
     * </p>
     */
    public SchedulerContext getContext() throws SchedulerException {
        return sched.getSchedulerContext();
    }

    ///////////////////////////////////////////////////////////////////////////
    ///
    /// Schedululer State Management Methods
    ///
    ///////////////////////////////////////////////////////////////////////////

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void start() throws SchedulerException {
        sched.start();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void startDelayed(int seconds) throws SchedulerException {
        sched.startDelayed(seconds);
    }


    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     * 
     * @deprecated
     * @see #standby()
     */
    public void pause() {
        this.standby();
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void standby() {
        sched.standby();
    }
    
    /**
     * Whether the scheduler has been started.  
     * 
     * <p>
     * Note: This only reflects whether <code>{@link #start()}</code> has ever
     * been called on this Scheduler, so it will return <code>true</code> even 
     * if the <code>Scheduler</code> is currently in standby mode or has been 
     * since shutdown.
     * </p>
     * 
     * @see #start()
     * @see #isShutdown()
     * @see #isInStandbyMode()
     */    
    public boolean isStarted() {
        return (sched.runningSince() != null);
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public boolean isInStandbyMode() {
        return sched.isInStandbyMode();
    }

    /**
     * @deprecated
     */
    public boolean isPaused() {
        return isInStandbyMode();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void shutdown() {
        sched.shutdown();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void shutdown(boolean waitForJobsToComplete) {
        sched.shutdown(waitForJobsToComplete);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public boolean isShutdown() {
        return sched.isShutdown();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public List getCurrentlyExecutingJobs() {
        return sched.getCurrentlyExecutingJobs();
    }

    ///////////////////////////////////////////////////////////////////////////
    ///
    /// Scheduling-related Methods
    ///
    ///////////////////////////////////////////////////////////////////////////

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public Date scheduleJob(JobDetail jobDetail, Trigger trigger)
        throws SchedulerException {
        return sched.scheduleJob(schedCtxt, jobDetail, trigger);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public Date scheduleJob(Trigger trigger) throws SchedulerException {
        return sched.scheduleJob(schedCtxt, trigger);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void addJob(JobDetail jobDetail, boolean replace)
        throws SchedulerException {
        sched.addJob(schedCtxt, jobDetail, replace);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public boolean deleteJob(String jobName, String groupName)
        throws SchedulerException {
        return sched.deleteJob(schedCtxt, jobName, groupName);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public boolean unscheduleJob(String triggerName, String groupName)
        throws SchedulerException {
        return sched.unscheduleJob(schedCtxt, triggerName, groupName);
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public Date rescheduleJob(String triggerName,
            String groupName, Trigger newTrigger) throws SchedulerException {
        return sched.rescheduleJob(schedCtxt, triggerName, groupName, newTrigger);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void triggerJob(String jobName, String groupName)
        throws SchedulerException {
        triggerJob(jobName, groupName, null);
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void triggerJob(String jobName, String groupName, JobDataMap data)
        throws SchedulerException {
        sched.triggerJob(schedCtxt, jobName, groupName, data);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void triggerJobWithVolatileTrigger(String jobName, String groupName)
        throws SchedulerException {
        triggerJobWithVolatileTrigger(jobName, groupName, null);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void triggerJobWithVolatileTrigger(String jobName, String groupName, JobDataMap data)
        throws SchedulerException {
        sched.triggerJobWithVolatileTrigger(schedCtxt, jobName, groupName, data);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void pauseTrigger(String triggerName, String groupName)
        throws SchedulerException {
        sched.pauseTrigger(schedCtxt, triggerName, groupName);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void pauseTriggerGroup(String groupName) throws SchedulerException {
        sched.pauseTriggerGroup(schedCtxt, groupName);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */
    public void pauseJob(String jobName, String groupName)
        throws SchedulerException {
        sched.pauseJob(schedCtxt, jobName, groupName);
    }

    /** 
     * @see org.quartz.Scheduler#getPausedTriggerGroups()
     */
    public Set getPausedTriggerGroups() throws SchedulerException {
        return sched.getPausedTriggerGroups(schedCtxt);
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
     * passing the <code>SchedulingContext</code> associated with this
     * instance.
     * </p>
     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品一区二区三区不卡牛牛| 丁香亚洲综合激情啪啪综合| 8x8x8国产精品| 一区二区三区欧美日韩| 一本大道综合伊人精品热热| 亚洲精品免费在线观看| 色欧美日韩亚洲| 图片区小说区国产精品视频| 日韩精品中文字幕一区二区三区| 精品在线亚洲视频| 久久精品亚洲乱码伦伦中文| av成人免费在线| 亚洲成av人片在线观看| 日韩欧美一区二区视频| 丁香婷婷综合激情五月色| 欧美精彩视频一区二区三区| 国产精品18久久久久| 国产精品每日更新| 91香蕉国产在线观看软件| 亚洲国产精品尤物yw在线观看| 91精品国产品国语在线不卡| 国产一区二区三区免费看| 免费高清在线视频一区·| 久久精品亚洲精品国产欧美kt∨| 色婷婷综合久久久| 日本一道高清亚洲日美韩| 国产欧美在线观看一区| 欧美色电影在线| 国内精品国产三级国产a久久 | 色94色欧美sute亚洲线路一ni| 亚洲国产欧美在线| 国产午夜亚洲精品羞羞网站| 在线免费观看不卡av| 精品一区二区三区久久久| 亚洲欧洲日韩在线| 日韩精品一区二区三区三区免费| 成人国产视频在线观看| 日韩电影在线一区| 亚洲天堂av老司机| 欧美精品一区视频| 欧美日韩一区二区三区四区| 粗大黑人巨茎大战欧美成人| 亚洲成a人片在线不卡一二三区 | 国产精品入口麻豆九色| 91精品国产综合久久精品app| 成人一区二区三区视频在线观看| 日韩精品免费专区| 亚洲日本va午夜在线影院| 337p粉嫩大胆色噜噜噜噜亚洲| 91福利国产精品| thepron国产精品| 国产在线麻豆精品观看| 日韩电影一区二区三区四区| 亚洲色图在线视频| 中文字幕第一区二区| 日韩久久久精品| 7777精品伊人久久久大香线蕉| 91美女在线观看| 成人美女视频在线观看| 国内一区二区视频| 热久久久久久久| 调教+趴+乳夹+国产+精品| 亚洲免费毛片网站| 综合色中文字幕| 精品制服美女丁香| 日韩极品在线观看| 亚洲电影一区二区| 亚洲精品老司机| 亚洲欧美在线视频| 国产精品色噜噜| 中文一区一区三区高中清不卡| 精品理论电影在线| 欧美不卡视频一区| 日韩欧美国产三级电影视频| 欧美日韩久久一区| 欧美色综合网站| 欧美日韩国产首页| 欧美日韩激情一区| 91精品国产综合久久久久久久| 欧美日韩国产成人在线91| 欧美性xxxxxxxx| 欧美色网站导航| 制服丝袜亚洲色图| 日韩午夜av一区| 精品女同一区二区| 久久人人爽人人爽| 欧美国产成人精品| 亚洲三级在线观看| 亚洲精品你懂的| 日韩高清欧美激情| 免费精品视频在线| 国产精品一二三区| 成人av网址在线| 在线观看av一区二区| 欧美视频中文一区二区三区在线观看| 欧美日韩在线综合| 欧美www视频| 国产亚洲福利社区一区| 亚洲欧美自拍偷拍色图| 亚洲v精品v日韩v欧美v专区| 日韩1区2区3区| 国产乱人伦偷精品视频免下载| 国产suv精品一区二区6| 91猫先生在线| 欧美一区二区啪啪| 国产清纯在线一区二区www| 中文字幕一区二区三区色视频| 亚洲一区在线视频| 蜜臀av亚洲一区中文字幕| 国产精品18久久久久久vr| 色综合视频在线观看| 制服.丝袜.亚洲.另类.中文| 久久亚洲一级片| 亚洲欧美视频在线观看视频| 日韩和的一区二区| 懂色av中文字幕一区二区三区| 91黄色免费看| 日韩精品一区二区三区四区| 国产精品国产三级国产普通话蜜臀| 亚洲午夜免费福利视频| 国产美女精品人人做人人爽| 色成年激情久久综合| 欧美精品一区二区三区蜜桃| 亚洲欧洲精品天堂一级| 日本欧美韩国一区三区| av亚洲精华国产精华精华| 欧美久久久一区| 中文字幕一区二区三区蜜月| 美女视频黄 久久| 色婷婷久久久综合中文字幕 | 26uuu亚洲综合色| 亚洲欧美电影一区二区| 国产在线精品视频| 欧美日韩一区二区欧美激情| 亚洲国产精华液网站w| 日本亚洲免费观看| 欧洲视频一区二区| 国产精品乱人伦一区二区| 蜜桃在线一区二区三区| 欧美在线免费观看亚洲| 欧美激情中文字幕一区二区| 日韩和欧美的一区| 色94色欧美sute亚洲线路一久| 国产女同性恋一区二区| 毛片av一区二区| 欧美日韩综合在线免费观看| 中文字幕色av一区二区三区| 国产一区高清在线| 欧美一级久久久久久久大片| 亚洲午夜免费视频| 色综合色狠狠综合色| 中文字幕av一区二区三区高| 国内精品久久久久影院一蜜桃| 欧美日本免费一区二区三区| 亚洲精品久久久蜜桃| 99久久精品国产一区| 国产精品嫩草影院av蜜臀| 国产一区二三区| 精品sm在线观看| 麻豆精品一二三| 日韩精品一区二区三区蜜臀| 免费精品视频在线| 日韩一区二区三免费高清| 午夜精品久久久久久久久 | 欧美日韩综合在线| 亚洲一二三区不卡| 欧美丝袜丝nylons| 亚洲成a人片综合在线| 欧美日韩亚洲高清一区二区| 亚洲久本草在线中文字幕| 91在线视频播放| 一区二区三区在线看| 日本高清不卡视频| 亚洲午夜在线视频| 欧美色区777第一页| 五月天激情综合| 91精品国产欧美一区二区成人| 亚洲成av人片一区二区梦乃| 在线播放亚洲一区| 免费人成精品欧美精品| 精品少妇一区二区三区| 国产精品影音先锋| 国产精品三级在线观看| 色综合久久66| 亚洲成人精品一区二区| 欧美一区二区三区电影| 国产一区视频网站| 亚洲欧洲美洲综合色网| 91久久精品日日躁夜夜躁欧美| 亚洲高清久久久| 欧美一二三区精品| 国产精品99久久久久久久女警| 国产精品国产三级国产三级人妇| 色偷偷久久一区二区三区| 午夜精品久久久久久久99樱桃| 日韩欧美一区中文| 风间由美一区二区av101| 一区二区三区在线影院| 欧美一区二区网站| 成人在线视频首页|