org.springframework.scheduling.SchedulingException Java Examples
The following examples show how to use
org.springframework.scheduling.SchedulingException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SchedulerFactoryBean.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void start() throws SchedulingException { if (this.scheduler != null) { try { startScheduler(this.scheduler, this.startupDelay); } catch (SchedulerException ex) { throw new SchedulingException("Could not start Quartz Scheduler", ex); } } }
Example #2
Source File: SimpleThreadPoolTaskExecutor.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void execute(Runnable task) { Assert.notNull(task, "Runnable must not be null"); if (!runInThread(task)) { throw new SchedulingException("Quartz SimpleThreadPool already shut down"); } }
Example #3
Source File: SchedulerFactoryBean.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public boolean isRunning() throws SchedulingException { if (this.scheduler != null) { try { return !this.scheduler.isInStandbyMode(); } catch (SchedulerException ex) { return false; } } return false; }
Example #4
Source File: SchedulerFactoryBean.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void stop() throws SchedulingException { if (this.scheduler != null) { try { this.scheduler.standby(); } catch (SchedulerException ex) { throw new SchedulingException("Could not stop Quartz Scheduler", ex); } } }
Example #5
Source File: SchedulerFactoryBean.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void start() throws SchedulingException { if (this.scheduler != null) { try { startScheduler(this.scheduler, this.startupDelay); } catch (SchedulerException ex) { throw new SchedulingException("Could not start Quartz Scheduler", ex); } } }
Example #6
Source File: SimpleThreadPoolTaskExecutor.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void execute(Runnable task) { Assert.notNull(task, "Runnable must not be null"); if (!runInThread(task)) { throw new SchedulingException("Quartz SimpleThreadPool already shut down"); } }
Example #7
Source File: SchedulerFactoryBean.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public boolean isRunning() throws SchedulingException { if (this.scheduler != null) { try { return !this.scheduler.isInStandbyMode(); } catch (SchedulerException ex) { return false; } } return false; }
Example #8
Source File: SchedulerFactoryBean.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void stop() throws SchedulingException { if (this.scheduler != null) { try { this.scheduler.standby(); } catch (SchedulerException ex) { throw new SchedulingException("Could not stop Quartz Scheduler", ex); } } }
Example #9
Source File: SchedulerFactoryBean.java From spring-analysis-note with MIT License | 5 votes |
@Override public void start() throws SchedulingException { if (this.scheduler != null) { try { startScheduler(this.scheduler, this.startupDelay); } catch (SchedulerException ex) { throw new SchedulingException("Could not start Quartz Scheduler", ex); } } }
Example #10
Source File: SchedulerFactoryBean.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void start() throws SchedulingException { if (RunLevel.current().aspectEnabled("scheduledTasks")) super.start(); else log.warn("Aspect disabled"); }
Example #11
Source File: SimpleThreadPoolTaskExecutor.java From java-technology-stack with MIT License | 5 votes |
@Override public void execute(Runnable task) { Assert.notNull(task, "Runnable must not be null"); if (!runInThread(task)) { throw new SchedulingException("Quartz SimpleThreadPool already shut down"); } }
Example #12
Source File: SchedulerFactoryBean.java From java-technology-stack with MIT License | 5 votes |
@Override public boolean isRunning() throws SchedulingException { if (this.scheduler != null) { try { return !this.scheduler.isInStandbyMode(); } catch (SchedulerException ex) { return false; } } return false; }
Example #13
Source File: SchedulerFactoryBean.java From java-technology-stack with MIT License | 5 votes |
@Override public void stop() throws SchedulingException { if (this.scheduler != null) { try { this.scheduler.standby(); } catch (SchedulerException ex) { throw new SchedulingException("Could not stop Quartz Scheduler", ex); } } }
Example #14
Source File: SchedulerFactoryBean.java From java-technology-stack with MIT License | 5 votes |
@Override public void start() throws SchedulingException { if (this.scheduler != null) { try { startScheduler(this.scheduler, this.startupDelay); } catch (SchedulerException ex) { throw new SchedulingException("Could not start Quartz Scheduler", ex); } } }
Example #15
Source File: SimpleThreadPoolTaskExecutor.java From spring-analysis-note with MIT License | 5 votes |
@Override public void execute(Runnable task) { Assert.notNull(task, "Runnable must not be null"); if (!runInThread(task)) { throw new SchedulingException("Quartz SimpleThreadPool already shut down"); } }
Example #16
Source File: SchedulerFactoryBean.java From spring-analysis-note with MIT License | 5 votes |
@Override public boolean isRunning() throws SchedulingException { if (this.scheduler != null) { try { return !this.scheduler.isInStandbyMode(); } catch (SchedulerException ex) { return false; } } return false; }
Example #17
Source File: SchedulerFactoryBean.java From spring-analysis-note with MIT License | 5 votes |
@Override public void stop() throws SchedulingException { if (this.scheduler != null) { try { this.scheduler.standby(); } catch (SchedulerException ex) { throw new SchedulingException("Could not stop Quartz Scheduler", ex); } } }
Example #18
Source File: SchedulerFactoryBean.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void stop(Runnable callback) throws SchedulingException { stop(); callback.run(); }
Example #19
Source File: SchedulerFactoryBean.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public void stop(Runnable callback) throws SchedulingException { stop(); callback.run(); }