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

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

?? remotescheduler.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.impl;import java.rmi.RemoteException;import java.rmi.registry.LocateRegistry;import java.rmi.registry.Registry;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.RemotableQuartzScheduler;import org.quartz.core.SchedulingContext;import org.quartz.spi.JobFactory;/** * <p> * An implementation of the <code>Scheduler</code> interface that remotely * proxies all method calls to the equivalent call on a given <code>QuartzScheduler</code> * instance, via RMI. * </p> *  * @see org.quartz.Scheduler * @see org.quartz.core.QuartzScheduler * @see org.quartz.core.SchedulingContext *  * @author James House */public class RemoteScheduler implements Scheduler {    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Data members.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    private RemotableQuartzScheduler rsched;    private SchedulingContext schedCtxt;    private String schedId;    private String rmiHost;    private int rmiPort;    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Constructors.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    /**     * <p>     * Construct a <code>RemoteScheduler</code> instance to proxy the given     * <code>RemoteableQuartzScheduler</code> instance, and with the given     * <code>SchedulingContext</code>.     * </p>     */    public RemoteScheduler(SchedulingContext schedCtxt, String schedId,            String host, int port) {        this.schedCtxt = schedCtxt;        this.schedId = schedId;        this.rmiHost = host;        this.rmiPort = port;    }    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Interface.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    protected RemotableQuartzScheduler getRemoteScheduler()            throws SchedulerException {        if (rsched != null) return rsched;        try {            Registry registry = LocateRegistry.getRegistry(rmiHost, rmiPort);            rsched = (RemotableQuartzScheduler) registry.lookup(schedId);        } catch (Exception e) {            SchedulerException initException = new SchedulerException(                    "Could not get handle to remote scheduler: "                            + e.getMessage(), e);            initException                    .setErrorCode(SchedulerException.ERR_COMMUNICATION_FAILURE);            throw initException;        }        return rsched;    }    protected SchedulerException invalidateHandleCreateException(String msg,            Exception cause) {        rsched = null;        SchedulerException ex = new SchedulerException(msg, cause);        ex.setErrorCode(SchedulerException.ERR_COMMUNICATION_FAILURE);        return ex;    }    /**     * <p>     * Returns the name of the <code>Scheduler</code>.     * </p>     */    public String getSchedulerName() throws SchedulerException {        try {            return getRemoteScheduler().getSchedulerName();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Returns the instance Id of the <code>Scheduler</code>.     * </p>     */    public String getSchedulerInstanceId() throws SchedulerException {        try {            return getRemoteScheduler().getSchedulerInstanceId();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    public SchedulerMetaData getMetaData() throws SchedulerException {        try {            RemotableQuartzScheduler sched = getRemoteScheduler();            return new SchedulerMetaData(getSchedulerName(),                    getSchedulerInstanceId(), getClass(), true, sched                            .runningSince() != null, isPaused(), isShutdown(),                    sched.runningSince(), sched.numJobsExecuted(), sched                            .getJobStoreClass(), sched.supportsPersistence(),                    sched.getThreadPoolClass(), sched.getThreadPoolSize(),                    sched.getVersion());        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Returns the <code>SchedulerContext</code> of the <code>Scheduler</code>.     * </p>     */    public SchedulerContext getContext() throws SchedulerException {        try {            return getRemoteScheduler().getSchedulerContext();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    ///////////////////////////////////////////////////////////////////////////    ///    /// Schedululer State Management Methods    ///    ///////////////////////////////////////////////////////////////////////////    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void start() throws SchedulerException {        try {            getRemoteScheduler().start();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void standby() throws SchedulerException {        try {            getRemoteScheduler().standby();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * @see org.quartz.Scheduler#pause()     * @deprecated     */    public void pause() throws SchedulerException {        this.standby();    }            /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean isInStandbyMode() throws SchedulerException {        try {            return getRemoteScheduler().isInStandbyMode();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    public boolean isPaused() throws SchedulerException {        return this.isInStandbyMode();    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void shutdown() throws SchedulerException {        try {            getRemoteScheduler().shutdown();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void shutdown(boolean waitForJobsToComplete)            throws SchedulerException {        try {            getRemoteScheduler().shutdown(waitForJobsToComplete);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean isShutdown() throws SchedulerException {        try {            return getRemoteScheduler().isShutdown();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getCurrentlyExecutingJobs() throws SchedulerException {        try {            return getRemoteScheduler().getCurrentlyExecutingJobs();        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    ///////////////////////////////////////////////////////////////////////////    ///    /// 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 {        try {            return getRemoteScheduler().scheduleJob(schedCtxt, jobDetail,                    trigger);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <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 {        try {            return getRemoteScheduler().scheduleJob(schedCtxt, trigger);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    /**     * <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 {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚区不卡日本| 欧美吞精做爰啪啪高潮| 日产国产高清一区二区三区 | 久久综合给合久久狠狠狠97色69| 国产偷国产偷亚洲高清人白洁 | 亚洲乱码日产精品bd| 久久成人免费电影| 日本午夜精品一区二区三区电影| 国产精品福利一区| 亚洲男人天堂一区| 亚洲主播在线播放| 免费成人结看片| 国产另类ts人妖一区二区| 国产精品资源网站| 99国产麻豆精品| 精品视频1区2区| 日韩精品一区二区三区在线播放| 久久综合狠狠综合| 亚洲人成网站在线| 天天影视色香欲综合网老头| 国产美女av一区二区三区| 成人免费看黄yyy456| 欧美日产在线观看| 日本一区二区三级电影在线观看| 亚洲欧美综合另类在线卡通| 亚洲成人资源在线| 国产成人精品亚洲日本在线桃色 | 免费人成网站在线观看欧美高清| 久久99九九99精品| 91在线一区二区| **性色生活片久久毛片| 亚洲动漫第一页| 国产一区二区伦理片| 色欧美片视频在线观看| 精品av久久707| 亚洲伊人色欲综合网| 国产精品一区二区在线观看不卡| 99re视频精品| 日韩欧美激情四射| 综合分类小说区另类春色亚洲小说欧美| 亚洲成人av电影在线| 成人av资源站| 日韩精品一区二区三区视频在线观看 | 欧美一级片免费看| 中文字幕在线播放不卡一区| 石原莉奈一区二区三区在线观看| 国产精品996| 日韩一区二区三区视频| 亚洲乱码日产精品bd| 国产成人精品影院| 欧美一级国产精品| 亚洲最大的成人av| 99精品欧美一区| 久久一二三国产| 秋霞成人午夜伦在线观看| 欧美中文字幕亚洲一区二区va在线 | 粉嫩嫩av羞羞动漫久久久| 欧美日韩亚洲综合一区二区三区| 中文字幕一区二区三区视频| 国产福利91精品一区| 欧美成人在线直播| 国产成人在线网站| 久久麻豆一区二区| 韩国欧美国产1区| 欧美不卡一区二区三区四区| 日韩电影在线一区| 欧美日韩国产一区| 亚洲成人一区二区在线观看| 在线观看区一区二| 一区二区久久久久| 欧美日免费三级在线| 一区二区三区在线播放| 色综合中文综合网| 日本成人超碰在线观看| 欧美日韩你懂得| 亚洲第一主播视频| 欧美一级一级性生活免费录像| 亚洲国产综合人成综合网站| 在线观看免费亚洲| 亚洲va欧美va天堂v国产综合| 欧美日韩一级片网站| 视频一区在线播放| 欧美不卡视频一区| 国产精品一品视频| 自拍偷拍亚洲激情| 色婷婷国产精品| 午夜精品久久久久久久久久 | 国产精品99久久久久| 国产精品久久免费看| 91蜜桃网址入口| 亚洲大片一区二区三区| 国产一区二区三区四区五区入口| 国产精品丝袜久久久久久app| 欧美精品一区二| 欧美v国产在线一区二区三区| 丝袜亚洲另类丝袜在线| 欧美女孩性生活视频| 久久国产精品99精品国产| 中文字幕第一页久久| 欧美午夜不卡在线观看免费| 狠狠狠色丁香婷婷综合激情| 综合自拍亚洲综合图不卡区| 欧美日韩国产色站一区二区三区| 久久av老司机精品网站导航| 国产女人aaa级久久久级 | 成人动漫一区二区三区| 亚洲与欧洲av电影| 久久精品日韩一区二区三区| 欧美色网一区二区| 成人理论电影网| 免费欧美日韩国产三级电影| 国产日产精品1区| 欧美理论片在线| 成人av资源站| 美女在线观看视频一区二区| 国产精品不卡视频| 欧美第一区第二区| 欧美在线不卡视频| 成人av集中营| 九九国产精品视频| 亚洲大型综合色站| 亚洲免费成人av| 国产亚洲人成网站| 日韩欧美亚洲国产另类| 日本二三区不卡| 国产精品一区不卡| 久久成人羞羞网站| 亚洲电影一级片| 久久国产精品99久久久久久老狼 | 日本欧美一区二区三区| 亚洲色图制服丝袜| 国产精品乱码人人做人人爱| 久久综合九色综合97婷婷女人| 欧美日韩免费观看一区三区| 99re视频这里只有精品| 成人综合在线观看| 国产成人免费视频网站| 精彩视频一区二区三区| 老司机精品视频在线| 美国一区二区三区在线播放| 午夜欧美2019年伦理| 午夜精品福利视频网站| 亚洲国产精品久久久久婷婷884 | 不卡的电视剧免费网站有什么| 国产精品99久久久久久似苏梦涵 | 色94色欧美sute亚洲线路二| 高清不卡在线观看av| 国产91色综合久久免费分享| 国产美女在线观看一区| 国产综合色产在线精品| 狠狠色伊人亚洲综合成人| 精品一区二区三区免费播放| 国产呦精品一区二区三区网站 | 国产日产欧美一区| 国产日韩欧美高清在线| 中文字幕欧美三区| 一区在线播放视频| 亚洲一区二区视频| 丝袜美腿亚洲色图| 玖玖九九国产精品| 国产盗摄视频一区二区三区| 懂色av一区二区夜夜嗨| 91视频免费看| 欧美日韩第一区日日骚| 日韩免费在线观看| 国产日韩精品一区二区浪潮av| 亚洲国产精品黑人久久久| 亚洲日穴在线视频| 首页亚洲欧美制服丝腿| 激情综合色综合久久| av在线播放成人| 欧美裸体bbwbbwbbw| 久久尤物电影视频在线观看| 亚洲国产精品成人综合色在线婷婷| 中文字幕乱码久久午夜不卡 | 亚洲成人黄色影院| 九色porny丨国产精品| av在线这里只有精品| 欧美美女网站色| 中文在线免费一区三区高中清不卡| 伊人婷婷欧美激情| 蜜桃av一区二区在线观看| 国产91精品一区二区| 欧美日韩久久不卡| 中文字幕精品一区| 亚洲一区精品在线| 国产精品18久久久久久久久久久久| 91在线你懂得| 欧美不卡激情三级在线观看| 亚洲人被黑人高潮完整版| 久草中文综合在线| 欧美在线综合视频| 国产女人18水真多18精品一级做| 亚洲一区在线看| 成人福利电影精品一区二区在线观看| 欧美性大战xxxxx久久久| 中国色在线观看另类| 国模大尺度一区二区三区| 欧美剧在线免费观看网站| 亚洲欧洲国产日本综合|