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

📄 remotescheduler.java

📁 定时器开源项目, 相对于 jcrontab, Quartz 算是更完整的一个项目, 随著开发的版本上来, 他已经脱离只是写在程序里面的计时器, 在指定的时间或区间, 处理所指定的事件. 也加入了 se
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
        }    }    /**     * <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 {        try {            return getRemoteScheduler().getJobDetail(schedCtxt, jobName,                    jobGroup);        } 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 Trigger getTrigger(String triggerName, String triggerGroup)            throws SchedulerException {        try {            return getRemoteScheduler().getTrigger(schedCtxt, triggerName,                    triggerGroup);        } 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 int getTriggerState(String triggerName, String triggerGroup)            throws SchedulerException {        try {            return getRemoteScheduler().getTriggerState(schedCtxt, triggerName,                    triggerGroup);        } 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 addCalendar(String calName, Calendar calendar, boolean replace, boolean updateTriggers)            throws SchedulerException {        try {            getRemoteScheduler().addCalendar(schedCtxt, calName, calendar,                    replace, updateTriggers);        } 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 boolean deleteCalendar(String calName) throws SchedulerException {        try {            return getRemoteScheduler().deleteCalendar(schedCtxt, calName);        } 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 Calendar getCalendar(String calName) throws SchedulerException {        try {            return getRemoteScheduler().getCalendar(schedCtxt, calName);        } 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 String[] getCalendarNames() throws SchedulerException {        try {            return getRemoteScheduler().getCalendarNames(schedCtxt);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    ///////////////////////////////////////////////////////////////////////////    ///    /// Listener-related Methods    ///    ///////////////////////////////////////////////////////////////////////////    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addGlobalJobListener(JobListener jobListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addJobListener(JobListener jobListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeGlobalJobListener(JobListener jobListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeJobListener(String name) throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getGlobalJobListeners() throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public Set getJobListenerNames() throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public JobListener getJobListener(String name) throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addGlobalTriggerListener(TriggerListener triggerListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addTriggerListener(TriggerListener triggerListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeGlobalTriggerListener(TriggerListener triggerListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeTriggerListener(String name) throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getGlobalTriggerListeners() throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public Set getTriggerListenerNames() throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public TriggerListener getTriggerListener(String name)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public void addSchedulerListener(SchedulerListener schedulerListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public boolean removeSchedulerListener(SchedulerListener schedulerListener)            throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**     * <p>     * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.     * </p>     */    public List getSchedulerListeners() throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }    /**      * @see org.quartz.Scheduler#getPausedTriggerGroups()     */    public Set getPausedTriggerGroups() throws SchedulerException {        try {            return getRemoteScheduler().getPausedTriggerGroups(schedCtxt);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);        }    }    public boolean interrupt(String jobName, String groupName) throws UnableToInterruptJobException  {        try {            return getRemoteScheduler().interrupt(schedCtxt, jobName, groupName);        } catch (RemoteException re) {            throw new UnableToInterruptJobException(invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re));        } catch (SchedulerException se) {            throw new UnableToInterruptJobException(se);        }    }}

⌨️ 快捷键说明

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