Java Code Examples for org.quartz.spi.ThreadExecutor#execute()
The following examples show how to use
org.quartz.spi.ThreadExecutor#execute() .
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: QuartzScheduler.java From lams with GNU General Public License v2.0 | 5 votes |
/** * <p> * Create a <code>QuartzScheduler</code> with the given configuration * properties. * </p> * * @see QuartzSchedulerResources */ public QuartzScheduler(QuartzSchedulerResources resources, long idleWaitTime, @Deprecated long dbRetryInterval) throws SchedulerException { this.resources = resources; if (resources.getJobStore() instanceof JobListener) { addInternalJobListener((JobListener)resources.getJobStore()); } this.schedThread = new QuartzSchedulerThread(this, resources); ThreadExecutor schedThreadExecutor = resources.getThreadExecutor(); schedThreadExecutor.execute(this.schedThread); if (idleWaitTime > 0) { this.schedThread.setIdleWaitTime(idleWaitTime); } jobMgr = new ExecutingJobsManager(); addInternalJobListener(jobMgr); errLogger = new ErrorLogger(); addInternalSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, this.schedThread); if(shouldRunUpdateCheck()) updateTimer = scheduleUpdateCheck(); else updateTimer = null; getLog().info("Quartz Scheduler v." + getVersion() + " created."); }
Example 2
Source File: QuartzScheduler.java From AsuraFramework with Apache License 2.0 | 5 votes |
/** * <p> * Create a <code>QuartzScheduler</code> with the given configuration * properties. * </p> * * @see QuartzSchedulerResources */ public QuartzScheduler(QuartzSchedulerResources resources, SchedulingContext ctxt, long idleWaitTime, long dbRetryInterval) throws SchedulerException { this.resources = resources; this.schedThread = new QuartzSchedulerThread(this, resources, ctxt); ThreadExecutor schedThreadExecutor = resources.getThreadExecutor(); schedThreadExecutor.execute(this.schedThread); if (idleWaitTime > 0) { this.schedThread.setIdleWaitTime(idleWaitTime); } if (dbRetryInterval > 0) { this.schedThread.setDbFailureRetryInterval(dbRetryInterval); } jobMgr = new ExecutingJobsManager(); addGlobalJobListener(jobMgr); errLogger = new ErrorLogger(); addSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, this.schedThread); if(shouldRunUpdateCheck()) updateTimer = scheduleUpdateCheck(); else updateTimer = null; this.dbRetryInterval = dbRetryInterval; getLog().info("Quartz Scheduler v." + getVersion() + " created."); }
Example 3
Source File: JobStoreSupport.java From lams with GNU General Public License v2.0 | 4 votes |
public void initialize() { this.manage(); ThreadExecutor executor = getThreadExecutor(); executor.execute(ClusterManager.this); }
Example 4
Source File: JobStoreSupport.java From lams with GNU General Public License v2.0 | 4 votes |
public void initialize() { ThreadExecutor executor = getThreadExecutor(); executor.execute(MisfireHandler.this); }
Example 5
Source File: JobStoreSupport.java From AsuraFramework with Apache License 2.0 | 4 votes |
public void initialize() { this.manage(); ThreadExecutor executor = getThreadExecutor(); executor.execute(ClusterManager.this); }
Example 6
Source File: JobStoreSupport.java From AsuraFramework with Apache License 2.0 | 4 votes |
public void initialize() { ThreadExecutor executor = getThreadExecutor(); executor.execute(MisfireHandler.this); }