/** * Starts a Job matching the given Job Name * * @param jobName */ public static void startJob(String jobName) { try { getScheduler().triggerJob(jobName, null); } catch (SchedulerException e) { logger.error("ERROR STARTING JOB!!!", e); } }
/** * Starts a Job matching the given Job Name * * @param jobName */ public static void startJob(String jobName) throws SundialSchedulerException { try { getScheduler().triggerJob(jobName, null); } catch (SchedulerException e) { throw new SundialSchedulerException("ERROR STARTING JOB!!!", e); } }
/** * Starts a Job matching the given Job Name * * @param jobName */ public static void startJob(String jobName) throws SundialSchedulerException { try { getScheduler().triggerJob(jobName, null); } catch (SchedulerException e) { throw new SundialSchedulerException("ERROR STARTING JOB!!!", e); } }
/** * Starts a Job matching the the given Job Name found in jobs.xml * * @param jobName */ public static void startJob(String jobName, Map<String, Object> params) { try { JobDataMap jobDataMap = new JobDataMap(); for (String key : params.keySet()) { // logger.debug("key= " + key); // logger.debug("value= " + pParams.get(key)); jobDataMap.put(key, params.get(key)); } getScheduler().triggerJob(jobName, jobDataMap); } catch (SchedulerException e) { logger.error("ERROR STARTING JOB!!!", e); } }
/** * Starts a Job matching the the given Job Name found in jobs.xml * * @param jobName */ public static void startJob(String jobName, Map<String, Object> params) throws SundialSchedulerException { try { JobDataMap jobDataMap = new JobDataMap(); for (String key : params.keySet()) { // logger.debug("key= " + key); // logger.debug("value= " + pParams.get(key)); jobDataMap.put(key, params.get(key)); } getScheduler().triggerJob(jobName, jobDataMap); } catch (SchedulerException e) { throw new SundialSchedulerException("ERROR STARTING JOB!!!", e); } }
/** * Starts a Job matching the the given Job Name found in jobs.xml * * @param jobName */ public static void startJob(String jobName, Map<String, Object> params) throws SundialSchedulerException { try { JobDataMap jobDataMap = new JobDataMap(); for (String key : params.keySet()) { // logger.debug("key= " + key); // logger.debug("value= " + pParams.get(key)); jobDataMap.put(key, params.get(key)); } getScheduler().triggerJob(jobName, jobDataMap); } catch (SchedulerException e) { throw new SundialSchedulerException("ERROR STARTING JOB!!!", e); } }