⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remotablequartzscheduler.java

📁 定时器开源项目, 相对于 jcrontab, Quartz 算是更完整的一个项目, 随著开发的版本上来, 他已经脱离只是写在程序里面的计时器, 在指定的时间或区间, 处理所指定的事件. 也加入了 se
💻 JAVA
字号:
/* * Copyright James House (c) 2001-2004 *  * All rights reserved. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: 1. * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. 2. Redistributions in * binary form must reproduce the above copyright notice, this list of * conditions and the following disclaimer in the documentation and/or other * materials provided with the distribution. *  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package org.quartz.core;import java.rmi.Remote;import java.rmi.RemoteException;import java.util.Date;import java.util.List;import java.util.Set;import org.quartz.Calendar;import org.quartz.JobDetail;import org.quartz.JobListener;import org.quartz.SchedulerContext;import org.quartz.SchedulerException;import org.quartz.SchedulerListener;import org.quartz.Trigger;import org.quartz.TriggerListener;import org.quartz.UnableToInterruptJobException;/** * @author James House */public interface RemotableQuartzScheduler extends Remote {    /*     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     *      * Interface.     *      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     */    public String getSchedulerName() throws RemoteException;    public String getSchedulerInstanceId() throws RemoteException;    public SchedulerContext getSchedulerContext() throws SchedulerException,            RemoteException;    public void start() throws SchedulerException, RemoteException;    public void pause() throws RemoteException;    public boolean isPaused() throws RemoteException;    public void shutdown() throws RemoteException;    public void shutdown(boolean waitForJobsToComplete) throws RemoteException;    public boolean isShutdown() throws RemoteException;    public Date runningSince() throws RemoteException;    public String getVersion() throws RemoteException;    public int numJobsExecuted() throws RemoteException;    public Class getJobStoreClass() throws RemoteException;    public boolean supportsPersistence() throws RemoteException;    public Class getThreadPoolClass() throws RemoteException;    public int getThreadPoolSize() throws RemoteException;    public List getCurrentlyExecutingJobs() throws SchedulerException,            RemoteException;    public Date scheduleJob(SchedulingContext ctxt, JobDetail jobDetail,            Trigger trigger) throws SchedulerException, RemoteException;    public Date scheduleJob(SchedulingContext ctxt, Trigger trigger)            throws SchedulerException, RemoteException;    public void addJob(SchedulingContext ctxt, JobDetail jobDetail,            boolean replace) throws SchedulerException, RemoteException;    public boolean deleteJob(SchedulingContext ctxt, String jobName,            String groupName) throws SchedulerException, RemoteException;    public boolean unscheduleJob(SchedulingContext ctxt, String triggerName,            String groupName) throws SchedulerException, RemoteException;    public Date rescheduleJob(SchedulingContext ctxt, String triggerName,            String groupName, Trigger newTrigger) throws SchedulerException, RemoteException;                public void triggerJob(SchedulingContext ctxt, String jobName,            String groupName) throws SchedulerException, RemoteException;    public void triggerJobWithVolatileTrigger(SchedulingContext ctxt,            String jobName, String groupName) throws SchedulerException,            RemoteException;    public void pauseTrigger(SchedulingContext ctxt, String triggerName,            String groupName) throws SchedulerException, RemoteException;    public void pauseTriggerGroup(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public void pauseJob(SchedulingContext ctxt, String jobName,            String groupName) throws SchedulerException, RemoteException;    public void pauseJobGroup(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public void resumeTrigger(SchedulingContext ctxt, String triggerName,            String groupName) throws SchedulerException, RemoteException;    public void resumeTriggerGroup(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public Set getPausedTriggerGroups(SchedulingContext ctxt)        throws SchedulerException, RemoteException;        public void resumeJob(SchedulingContext ctxt, String jobName,            String groupName) throws SchedulerException, RemoteException;    public void resumeJobGroup(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public void pauseAll(SchedulingContext ctxt) throws SchedulerException,            RemoteException;    public void resumeAll(SchedulingContext ctxt) throws SchedulerException,            RemoteException;    public String[] getJobGroupNames(SchedulingContext ctxt)            throws SchedulerException, RemoteException;    public String[] getJobNames(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public Trigger[] getTriggersOfJob(SchedulingContext ctxt, String jobName,            String groupName) throws SchedulerException, RemoteException;    public String[] getTriggerGroupNames(SchedulingContext ctxt)            throws SchedulerException, RemoteException;    public String[] getTriggerNames(SchedulingContext ctxt, String groupName)            throws SchedulerException, RemoteException;    public JobDetail getJobDetail(SchedulingContext ctxt, String jobName,            String jobGroup) throws SchedulerException, RemoteException;    public Trigger getTrigger(SchedulingContext ctxt, String triggerName,            String triggerGroup) throws SchedulerException, RemoteException;    public int getTriggerState(SchedulingContext ctxt, String triggerName,            String triggerGroup) throws SchedulerException, RemoteException;    public void addCalendar(SchedulingContext ctxt, String calName,            Calendar calendar, boolean replace, boolean updateTriggers) throws SchedulerException,            RemoteException;    public boolean deleteCalendar(SchedulingContext ctxt, String calName)            throws SchedulerException, RemoteException;    public Calendar getCalendar(SchedulingContext ctxt, String calName)            throws SchedulerException, RemoteException;    public String[] getCalendarNames(SchedulingContext ctxt)            throws SchedulerException, RemoteException;    public void addGlobalJobListener(JobListener jobListener)            throws RemoteException;    public void addJobListener(JobListener jobListener) throws RemoteException;    public boolean removeGlobalJobListener(JobListener jobListener)            throws RemoteException;    public boolean removeJobListener(String name) throws RemoteException;    public List getGlobalJobListeners() throws RemoteException;    public Set getJobListenerNames() throws RemoteException;    public JobListener getJobListener(String name) throws RemoteException;    public void addGlobalTriggerListener(TriggerListener triggerListener)            throws RemoteException;    public void addTriggerListener(TriggerListener triggerListener)            throws RemoteException;    public boolean removeGlobalTriggerListener(TriggerListener triggerListener)            throws RemoteException;    public boolean removeTriggerListener(String name) throws RemoteException;    public List getGlobalTriggerListeners() throws RemoteException;    public Set getTriggerListenerNames() throws RemoteException;    public TriggerListener getTriggerListener(String name)            throws RemoteException;    public void addSchedulerListener(SchedulerListener schedulerListener)            throws RemoteException;    public boolean removeSchedulerListener(SchedulerListener schedulerListener)            throws RemoteException;    public List getSchedulerListeners() throws RemoteException;    public boolean interrupt(SchedulingContext ctxt, String jobName, String groupName) throws UnableToInterruptJobException,RemoteException ;   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -