stdscheduler.java

来自「Quartz 是个开源的作业调度框架」· Java 代码 · 共 777 行 · 第 1/2 页

JAVA
777
字号
    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public void pauseJobGroup(String groupName) throws SchedulerException {        sched.pauseJobGroup(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 resumeTrigger(String triggerName, String groupName)            throws SchedulerException {        sched.resumeTrigger(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 resumeTriggerGroup(String groupName) throws SchedulerException {        sched.resumeTriggerGroup(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 resumeJob(String jobName, String groupName)            throws SchedulerException {        sched.resumeJob(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 void resumeJobGroup(String groupName) throws SchedulerException {        sched.resumeJobGroup(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 pauseAll() throws SchedulerException {        sched.pauseAll(schedCtxt);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public void resumeAll() throws SchedulerException {        sched.resumeAll(schedCtxt);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public String[] getJobGroupNames() throws SchedulerException {        return sched.getJobGroupNames(schedCtxt);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public Trigger[] getTriggersOfJob(String jobName, String groupName)            throws SchedulerException {        return sched.getTriggersOfJob(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 String[] getJobNames(String groupName) throws SchedulerException {        return sched.getJobNames(schedCtxt, groupName);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public String[] getTriggerGroupNames() throws SchedulerException {        return sched.getTriggerGroupNames(schedCtxt);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public String[] getTriggerNames(String groupName) throws SchedulerException {        return sched.getTriggerNames(schedCtxt, groupName);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public JobDetail getJobDetail(String jobName, String jobGroup)            throws SchedulerException {        return sched.getJobDetail(schedCtxt, jobName, jobGroup);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public Trigger getTrigger(String triggerName, String triggerGroup)            throws SchedulerException {        return sched.getTrigger(schedCtxt, triggerName, triggerGroup);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public int getTriggerState(String triggerName, String triggerGroup)            throws SchedulerException {        return sched.getTriggerState(schedCtxt, triggerName, triggerGroup);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public void addCalendar(String calName, Calendar calendar, boolean replace, boolean updateTriggers)            throws SchedulerException {        sched.addCalendar(schedCtxt, calName, calendar, replace, updateTriggers);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public boolean deleteCalendar(String calName) throws SchedulerException {        return sched.deleteCalendar(schedCtxt, calName);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public Calendar getCalendar(String calName) throws SchedulerException {        return sched.getCalendar(schedCtxt, calName);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public String[] getCalendarNames() throws SchedulerException {        return sched.getCalendarNames(schedCtxt);    }    ///////////////////////////////////////////////////////////////////////////    ///    /// Listener-related Methods    ///    ///////////////////////////////////////////////////////////////////////////    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addGlobalJobListener(JobListener jobListener) {        sched.addGlobalJobListener(jobListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addJobListener(JobListener jobListener) {        sched.addJobListener(jobListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeGlobalJobListener(JobListener jobListener) {        return sched.removeGlobalJobListener(jobListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeJobListener(String name) {        return sched.removeJobListener(name);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getGlobalJobListeners() {        return sched.getGlobalJobListeners();    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public Set getJobListenerNames() {        return sched.getJobListenerNames();    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public JobListener getJobListener(String name) {        return sched.getJobListener(name);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addGlobalTriggerListener(TriggerListener triggerListener) {        sched.addGlobalTriggerListener(triggerListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addTriggerListener(TriggerListener triggerListener) {        sched.addTriggerListener(triggerListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeGlobalTriggerListener(TriggerListener triggerListener) {        return sched.removeGlobalTriggerListener(triggerListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeTriggerListener(String name) {        return sched.removeTriggerListener(name);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getGlobalTriggerListeners() {        return sched.getGlobalTriggerListeners();    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public Set getTriggerListenerNames() {        return sched.getTriggerListenerNames();    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public TriggerListener getTriggerListener(String name) {        return sched.getTriggerListener(name);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addSchedulerListener(SchedulerListener schedulerListener) {        sched.addSchedulerListener(schedulerListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeSchedulerListener(SchedulerListener schedulerListener) {        return sched.removeSchedulerListener(schedulerListener);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getSchedulerListeners() {        return sched.getSchedulerListeners();    }    public boolean interrupt(String jobName, String groupName) throws UnableToInterruptJobException {        return sched.interrupt(schedCtxt, jobName, groupName);    }    /**     * @see org.quartz.Scheduler#setJobFactory(org.quartz.spi.JobFactory)     */    public void setJobFactory(JobFactory factory) throws SchedulerException {        sched.setJobFactory(factory);    }    }

⌨️ 快捷键说明

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