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

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

?? remotembeanscheduler.java

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

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

import javax.management.AttributeList;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

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.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 JMX.
 * </p>
 * 
 * <p>
 * A user must create a subclass to implement the actual connection to the remote 
 * MBeanServer using their application specific connector.
 * For example <code>{@link org.quartz.ee.jmx.jboss.JBoss4RMIRemoteMBeanScheduler}</code>.
 * </p>
 * @see org.quartz.Scheduler
 * @see org.quartz.core.QuartzScheduler
 * @see org.quartz.core.SchedulingContext
 */
public abstract class RemoteMBeanScheduler implements Scheduler {

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

    private SchedulingContext schedulingContext;

    private ObjectName schedulerObjectName;
    
    /*
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * 
     * Constructors.
     * 
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     */

    public RemoteMBeanScheduler() { 
    }
    
    /*
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * 
     * Properties.
     * 
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     */
    
    /**
     * Get the name under which the Scheduler MBean is registered on the
     * remote MBean server.
     */
    protected ObjectName getSchedulerObjectName() {
        return schedulerObjectName;
    }

    /**
     * Set the name under which the Scheduler MBean is registered on the
     * remote MBean server.
     */
    public void setSchedulerObjectName(String schedulerObjectName)  throws SchedulerException {
        try {
            this.schedulerObjectName = new ObjectName(schedulerObjectName);
        } catch (MalformedObjectNameException e) {
            throw new SchedulerException("Failed to parse Scheduler MBean name: " + schedulerObjectName, e);
        }
    }

    /**
     * Set the name under which the Scheduler MBean is registered on the
     * remote MBean server.
     */
    public void setSchedulerObjectName(ObjectName schedulerObjectName)  throws SchedulerException {
        this.schedulerObjectName = schedulerObjectName;
    }

    /**
     * Set the scheduling context of this proxy. 
     */
    public void setSchedulingContext(SchedulingContext schedulingContext) {
        this.schedulingContext = schedulingContext;
    }

    
    
    /*
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     * 
     * Abstract methods.
     * 
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     */

    /**
     * Initialize this RemoteMBeanScheduler instance, connecting to the
     * remote MBean server.
     */
    public abstract void initialize() throws SchedulerException;

    /**
     * Get the given attribute of the remote Scheduler MBean.
     */
    protected abstract Object getAttribute(
            String attribute) throws SchedulerException;
        
    /**
     * Get the given attributes of the remote Scheduler MBean.
     */
    protected abstract AttributeList getAttributes(String[] attributes)
        throws SchedulerException;
    
    /**
     * Invoke the given operation on the remote Scheduler MBean.
     */
    protected abstract Object invoke(
        String operationName,
        Object[] params,
        String[] signature) throws SchedulerException;
        

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

    /**
     * <p>
     * Returns the name of the <code>Scheduler</code>.
     * </p>
     */
    public String getSchedulerName() throws SchedulerException {
        return (String)getAttribute("schedulerName");
    }

    /**
     * <p>
     * Returns the instance Id of the <code>Scheduler</code>.
     * </p>
     */
    public String getSchedulerInstanceId() throws SchedulerException {
        return (String)getAttribute("schedulerInstanceId");
    }

    public SchedulerMetaData getMetaData() throws SchedulerException {
        AttributeList attributeList = 
            getAttributes(
                new String[] {
                    "schedulerName",
                    "schedulerInstanceId",
                    "inStandbyMode",
                    "shutdown",
                    "jobStoreClass",
                    "threadPoolClass",
                    "threadPoolSize",
                    "version"
                });
        
        return new SchedulerMetaData(
                (String)attributeList.get(0),
                (String)attributeList.get(1),
                getClass(), true, isStarted(), 
                ((Boolean)attributeList.get(2)).booleanValue(), 
                ((Boolean)attributeList.get(3)).booleanValue(), 
                (Date)invoke("runningSince", new Object[] {}, new String[] {}), 
                ((Integer)invoke("numJobsExecuted", new Object[] {}, new String[] {})).intValue(),
                (Class)attributeList.get(4),
                ((Boolean)invoke("supportsPersistence", new Object[] {}, new String[] {})).booleanValue(),
                (Class)attributeList.get(5),
                ((Integer)attributeList.get(6)).intValue(),
                (String)attributeList.get(7));
    }

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

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

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void start() throws SchedulerException {
        invoke("start", new Object[] {}, new String[] {});
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void startDelayed(int seconds) throws SchedulerException {
        invoke("startDelayed", new Object[] {new Integer(seconds)}, new String[] {int.class.getName()});
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void standby() throws SchedulerException {
        invoke("standby", new Object[] {}, new String[] {});
    }

    /**
     * @see org.quartz.Scheduler#pause()
     * @deprecated
     */
    public void pause() throws SchedulerException {
        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() throws SchedulerException {
        return (invoke("runningSince", new Object[] {}, new String[] {}) != null);
    }
    
    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public boolean isInStandbyMode() throws SchedulerException {
        return ((Boolean)getAttribute("inStandbyMode")).booleanValue();
    }

    /**
     * @see org.quartz.Scheduler#isInStandbyMode()
     * @deprecated
     */
    public boolean isPaused() throws SchedulerException {
        return isInStandbyMode();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void shutdown() throws SchedulerException {
        // Have to get the scheduler name before we actually call shutdown.
        String schedulerName = getSchedulerName();
        
        invoke("shutdown", new Object[] {}, new String[] {});
        SchedulerRepository.getInstance().remove(schedulerName);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public void shutdown(boolean waitForJobsToComplete)
        throws SchedulerException {
        // Have to get the scheduler name before we actually call shutdown.
        String schedulerName = getSchedulerName();
        
        invoke(
            "shutdown", 
            new Object[] { toBoolean(waitForJobsToComplete) }, 
            new String[] { boolean.class.getName() });
        
        SchedulerRepository.getInstance().remove(schedulerName);
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public boolean isShutdown() throws SchedulerException {
        return ((Boolean)getAttribute("shutdown")).booleanValue();
    }

    /**
     * <p>
     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
     * </p>
     */
    public List getCurrentlyExecutingJobs() throws SchedulerException {
        return (List)invoke("getCurrentlyExecutingJobs", new Object[] {}, new String[] {});
    }

    ///////////////////////////////////////////////////////////////////////////
    ///
    /// 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 (Date)invoke(
                "scheduleJob", 
                new Object[] { schedulingContext, jobDetail, trigger }, 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品 欧美精品| 国产一区二区三区综合| 久久久99久久| 精品视频一区 二区 三区| 国产自产视频一区二区三区| 中文字幕日本乱码精品影院| 欧美一区二区女人| 色88888久久久久久影院野外 | 亚洲一本大道在线| 久久久国产综合精品女国产盗摄| 欧美色爱综合网| av在线不卡观看免费观看| 美女爽到高潮91| 一个色妞综合视频在线观看| 久久久午夜精品理论片中文字幕| 欧美高清精品3d| 色呦呦国产精品| 顶级嫩模精品视频在线看| 日韩av网站免费在线| 亚洲欧美日韩一区| 中文字幕不卡在线观看| 精品国产乱码久久久久久久久 | 久久久精品人体av艺术| 欧美精品国产精品| 色天使色偷偷av一区二区| 国产成人av一区二区| 免费久久精品视频| 偷窥国产亚洲免费视频| 国产精品理论在线观看| 国产欧美一区二区三区鸳鸯浴| 欧美一区二区视频观看视频| 欧美三电影在线| 91老师国产黑色丝袜在线| 不卡一卡二卡三乱码免费网站| 国产成人免费视频网站高清观看视频 | 日韩三级av在线播放| 欧美日韩高清不卡| 欧美三区在线观看| 91福利区一区二区三区| 波多野结衣视频一区| 99久久综合狠狠综合久久| 成人爱爱电影网址| 国产成人av一区二区三区在线观看| 韩国av一区二区三区在线观看| 黄色成人免费在线| 国产一区二区女| 国产剧情一区二区三区| 国产不卡视频在线播放| 国产激情偷乱视频一区二区三区 | 一区二区三区欧美亚洲| 国产精品嫩草影院com| 国产精品无遮挡| 国产精品乱码人人做人人爱 | 成人午夜激情影院| 处破女av一区二区| 波多野结衣一区二区三区 | 欧美专区亚洲专区| 欧美三级中文字幕| 国产精品久久久久久久久动漫| 国产精品午夜春色av| 国产精品素人一区二区| 亚洲美女免费视频| 午夜精品久久久久久久久| 视频精品一区二区| 蜜桃视频在线观看一区二区| 蜜臀av一区二区在线观看| 国产在线观看免费一区| 床上的激情91.| 在线观看欧美精品| 欧美一区二区三区思思人| 久久久久久久久一| 中文字幕一区二区三| 亚洲第一福利一区| 久久er99精品| 成人激情综合网站| 欧洲生活片亚洲生活在线观看| 欧美精品vⅰdeose4hd| 国产视频一区二区三区在线观看| 国产精品不卡在线观看| 亚洲高清视频中文字幕| 国产在线不卡视频| 91黄色在线观看| 精品成人在线观看| 亚洲欧美日韩精品久久久久| 美女国产一区二区| 91在线精品一区二区三区| 91麻豆精品国产综合久久久久久| 精品国产第一区二区三区观看体验| 国产精品美女久久福利网站| 日本午夜精品视频在线观看| jvid福利写真一区二区三区| 欧美一区二区啪啪| 亚洲特级片在线| 青草国产精品久久久久久| 成人动漫视频在线| 欧美白人最猛性xxxxx69交| 亚洲精品欧美激情| 美女mm1313爽爽久久久蜜臀| 一本大道综合伊人精品热热| 精品国产sm最大网站| 亚洲色图都市小说| 国产精品羞羞答答xxdd| 欧美日韩国产高清一区| 中文字幕视频一区二区三区久| 久久精品国内一区二区三区| 在线观看视频一区二区欧美日韩| 国产视频一区在线观看 | 美日韩一级片在线观看| 色呦呦一区二区三区| 国产欧美日韩激情| 免费精品99久久国产综合精品| 在线免费观看视频一区| 欧美极品少妇xxxxⅹ高跟鞋| 久久69国产一区二区蜜臀| 欧美日韩1234| 亚洲女子a中天字幕| 国产.欧美.日韩| 精品剧情v国产在线观看在线| 亚洲成av人片www| 91美女在线视频| 中文字幕av资源一区| 国产精品99久| 精品国产伦一区二区三区观看方式 | 精品福利av导航| 美女视频黄免费的久久| 欧美久久久久免费| 亚洲成av人片在线| 欧美午夜精品理论片a级按摩| 亚洲人成小说网站色在线| 成人在线综合网| 久久亚洲欧美国产精品乐播 | 欧美一区二区啪啪| 视频一区视频二区中文字幕| 欧美自拍偷拍午夜视频| 一卡二卡三卡日韩欧美| 色一区在线观看| 中文字幕日韩一区| 99re免费视频精品全部| 亚洲丝袜另类动漫二区| 色综合一区二区| 夜夜精品视频一区二区| 欧美中文字幕一区二区三区亚洲| 一区二区三区国产| 色噜噜狠狠成人网p站| 一区二区三区四区不卡视频| 色偷偷成人一区二区三区91| 亚洲一区二区在线观看视频 | 国产日韩三级在线| 国产不卡在线播放| 国产精品久久久久久一区二区三区 | 国产日韩影视精品| 成人av手机在线观看| √…a在线天堂一区| 欧美亚洲综合久久| 婷婷综合另类小说色区| 日韩免费一区二区| 国产成人亚洲精品狼色在线| 欧美激情一区二区| 91天堂素人约啪| 午夜视频在线观看一区| 欧美大尺度电影在线| 国产精品一区专区| 久久精品99久久久| 久久久久久免费网| 91在线视频官网| 91福利在线播放| 欧美影院一区二区三区| 久久精品日产第一区二区三区高清版 | 香蕉av福利精品导航| 丁香婷婷综合五月| 日韩一二三区不卡| 亚洲色图都市小说| 粉嫩高潮美女一区二区三区| 欧美精品777| 亚洲乱码国产乱码精品精98午夜 | 日本一区二区三区四区在线视频| 午夜精品视频一区| 色综合色综合色综合色综合色综合| 日韩天堂在线观看| 一区二区三区在线视频免费观看| 国产成人在线免费| 日韩欧美一级在线播放| 亚洲一区二区在线免费看| 99视频精品免费视频| 精品国产91洋老外米糕| 日韩成人一级片| 欧美中文字幕久久| 又紧又大又爽精品一区二区| 不卡一区二区中文字幕| 国产欧美综合在线| 国产精品影视在线观看| 日韩精品一区二区三区视频| 午夜精品免费在线| 欧美无乱码久久久免费午夜一区 | 日韩欧美中文一区二区| 天堂久久久久va久久久久| 91精彩视频在线| 一区二区三区中文在线| 欧美综合天天夜夜久久| 一区二区三区免费看视频|