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

📄 remotescheduler.java

📁 Quartz is a full-featured, open source job scheduling system that can be integrated with, or used al
💻 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 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>     * @deprecated Use <code>{@link #removeGlobalJobListener(String)}</code>     */    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 removeGlobalJobListener(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 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 getGlobalJobListener(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 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>     * @deprecated Use <code>{@link #removeGlobalTriggerListener(String)}</code>     */    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 removeGlobalTriggerListener(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 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 getGlobalTriggerListener(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 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);        }    }    /**     * @see org.quartz.Scheduler#interrupt(java.lang.String, java.lang.String)     */    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);        }    }    /**     * @see org.quartz.Scheduler#setJobFactory(org.quartz.spi.JobFactory)     */    public void setJobFactory(JobFactory factory) throws SchedulerException {        throw new SchedulerException(                "Operation not supported for remote schedulers.",                SchedulerException.ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION);    }}

⌨️ 快捷键说明

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