/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown() throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke("shutdown", new Object[] {}, new String[] {}); SchedulerRepository.getInstance().remove(schedulerName); }
/** * Create a StdSchedulerFactory that has been initialized via * <code>{@link #initialize(String)}</code>. * * @see #initialize(String) */ public StdSchedulerFactory(String fileName) throws SchedulerException { initialize(fileName); }
/** * <p> * Returns a handle to the Scheduler with the given name, if it exists. * </p> */ public Scheduler getScheduler(String schedName) throws SchedulerException { SchedulerRepository schedRep = SchedulerRepository.getInstance(); return schedRep.lookup(schedName); }
protected StdSchedulerFactory getSchedulerFactory(String configFile) throws SchedulerException { StdSchedulerFactory factory; // get Properties if (configFile != null) { factory = new StdSchedulerFactory(configFile); } else { factory = new StdSchedulerFactory(); } return factory; }
@Test(expected = IllegalArgumentException.class) @SuppressWarnings({ "unchecked", "rawtypes" }) public void jobDetailWithRunnableInsteadOfJob() { JobDetailImpl jobDetail = new JobDetailImpl(); jobDetail.setJobClass((Class) DummyRunnable.class); }
/** * <p> * Returns a handle to all known Schedulers (made by any * StdSchedulerFactory instance.). * </p> */ public Collection<Scheduler> getAllSchedulers() throws SchedulerException { return SchedulerRepository.getInstance().lookupAll(); } }
/** * <p> * Returns the name of the <code>Scheduler</code>. * </p> */ public String getSchedulerName() throws SchedulerException { return (String)getAttribute("SchedulerName"); }
public void clear() throws SchedulerException { invoke( "clear", new Object[] { }, new String[] { }); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ public void triggerJob(JobKey jobKey) throws SchedulerException { triggerJob(jobKey, null); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void triggerJob(JobKey jobKey) throws SchedulerException { triggerJob(jobKey, null); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown() throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke("shutdown", new Object[] {}, new String[] {}); SchedulerRepository.getInstance().remove(schedulerName); }
/** * <p> * Returns a handle to the Scheduler with the given name, if it exists (if * it has already been instantiated). * </p> */ public Scheduler getScheduler(String schedName) throws SchedulerException { return SchedulerRepository.getInstance().lookup(schedName); }
/** * <p> * Returns a handle to all known Schedulers (made by any * StdSchedulerFactory instance.). * </p> */ public Collection<Scheduler> getAllSchedulers() throws SchedulerException { return SchedulerRepository.getInstance().lookupAll(); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ @SuppressWarnings("unchecked") public List<String> getJobGroupNames() throws SchedulerException { return (List<String>)getAttribute("JobGroupNames"); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void start() throws SchedulerException { invoke("start", new Object[] {}, new String[] {}); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ @SuppressWarnings("unchecked") public List<String> getTriggerGroupNames() throws SchedulerException { return (List<String>)getAttribute("TriggerGroupNames"); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void start() throws SchedulerException { invoke("start", new Object[] {}, new String[] {}); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public boolean isInStandbyMode() throws SchedulerException { return (Boolean)getAttribute("StandbyMode"); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ @SuppressWarnings("unchecked") public List<String> getCalendarNames() throws SchedulerException { return (List<String>)getAttribute("CalendarNames"); }