remotescheduler.java

来自「quartz是一个用于工作任务定时调度的开源工具」· Java 代码 · 共 1,175 行 · 第 1/3 页

JAVA
1,175
字号
     * 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 {        triggerJob(jobName, groupName, null);    }        /**     * <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, JobDataMap data)        throws SchedulerException {        try {            getRemoteScheduler().triggerJob(schedCtxt, jobName, groupName, data);        } 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 {        triggerJobWithVolatileTrigger(jobName, groupName, null);    }        /**     * <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, JobDataMap data)        throws SchedulerException {        try {            getRemoteScheduler().triggerJobWithVolatileTrigger(schedCtxt,                    jobName, groupName, data);        } 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);        }    }    /**     * <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);        }

⌨️ 快捷键说明

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