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

📄 remotescheduler.java

📁 定时器开源项目, 相对于 jcrontab, Quartz 算是更完整的一个项目, 随著开发的版本上来, 他已经脱离只是写在程序里面的计时器, 在指定的时间或区间, 处理所指定的事件. 也加入了 se
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     * passing the <code>SchedulingContext</code> associated with this     * instance.     * </p>     */    public void addJob(JobDetail jobDetail, boolean replace)            throws SchedulerException {        try {            getRemoteScheduler().addJob(schedCtxt, jobDetail, replace);        } 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 deleteJob(String jobName, String groupName)            throws SchedulerException {        try {            return getRemoteScheduler()                    .deleteJob(schedCtxt, jobName, groupName);        } 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 unscheduleJob(String triggerName, String groupName)            throws SchedulerException {        try {            return getRemoteScheduler().unscheduleJob(schedCtxt, triggerName,                    groupName);        } 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 Date rescheduleJob(String triggerName,            String groupName, Trigger newTrigger) throws SchedulerException {        try {            return getRemoteScheduler().rescheduleJob(schedCtxt, triggerName,                    groupName, newTrigger);        } 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 triggerJob(String jobName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler().triggerJob(schedCtxt, jobName, groupName);        } 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 triggerJobWithVolatileTrigger(String jobName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler().triggerJobWithVolatileTrigger(schedCtxt,                    jobName, groupName);        } 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 pauseTrigger(String triggerName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler()                    .pauseTrigger(schedCtxt, triggerName, groupName);        } 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 pauseTriggerGroup(String groupName) throws SchedulerException {        try {            getRemoteScheduler().pauseTriggerGroup(schedCtxt, groupName);        } 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 pauseJob(String jobName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler().pauseJob(schedCtxt, jobName, groupName);        } 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 pauseJobGroup(String groupName) throws SchedulerException {        try {            getRemoteScheduler().pauseJobGroup(schedCtxt, groupName);        } 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 resumeTrigger(String triggerName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler().resumeTrigger(schedCtxt, triggerName,                    groupName);        } 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 resumeTriggerGroup(String groupName) throws SchedulerException {        try {            getRemoteScheduler().resumeTriggerGroup(schedCtxt, groupName);        } 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 resumeJob(String jobName, String groupName)            throws SchedulerException {        try {            getRemoteScheduler().resumeJob(schedCtxt, jobName, groupName);        } 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 resumeJobGroup(String groupName) throws SchedulerException {        try {            getRemoteScheduler().resumeJobGroup(schedCtxt, groupName);        } 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 pauseAll() throws SchedulerException {        try {            getRemoteScheduler().pauseAll(schedCtxt);        } 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 resumeAll() throws SchedulerException {        try {            getRemoteScheduler().resumeAll(schedCtxt);        } 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[] getJobGroupNames() throws SchedulerException {        try {            return getRemoteScheduler().getJobGroupNames(schedCtxt);        } 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[] getJobNames(String groupName) throws SchedulerException {        try {            return getRemoteScheduler().getJobNames(schedCtxt, groupName);        } 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[] getTriggersOfJob(String jobName, String groupName)            throws SchedulerException {        try {            return getRemoteScheduler().getTriggersOfJob(schedCtxt, jobName,                    groupName);        } 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[] getTriggerGroupNames() throws SchedulerException {        try {            return getRemoteScheduler().getTriggerGroupNames(schedCtxt);        } 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[] getTriggerNames(String groupName) throws SchedulerException {        try {            return getRemoteScheduler().getTriggerNames(schedCtxt, groupName);        } catch (RemoteException re) {            throw invalidateHandleCreateException(                    "Error communicating with remote scheduler.", re);

⌨️ 快捷键说明

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