Package org.quartz.core
Class QuartzSchedulerResources
java.lang.Object
org.quartz.core.QuartzSchedulerResources
Contains all of the resources (
JobStore,ThreadPool, etc.) necessary to
 create a QuartzScheduler- Author:
- James House
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate an instance with no properties initialized.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSchedulerPlugin(SchedulerPlugin plugin) Add the givenSchedulerPluginQuartzSchedulerlongGet theJobRunShellFactoryQuartzSchedulerGet theJobStoreQuartzSchedulerbooleanGet whether to mark the Quartz scheduling thread as daemon.intGet the name for theQuartzSchedulerThreadGet theThreadPoolQuartzSchedulerbooleanGet whether to set the class load context of spawned threads to that of the initializing thread.voidsetBatchTimeWindow(long batchTimeWindow) voidsetJobRunShellFactory(JobRunShellFactory jobRunShellFactory) Set theJobRunShellFactoryQuartzSchedulervoidsetJobStore(JobStore jobStore) Set theJobStoreQuartzSchedulervoidsetMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon) Set whether to mark the Quartz scheduling thread as daemon.voidsetMaxBatchSize(int maxBatchSize) voidsetThreadName(String threadName) Set the name for theQuartzSchedulerThreadvoidsetThreadPool(ThreadPool threadPool) Set theThreadPoolQuartzSchedulervoidsetThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext) Set whether to set the class load context of spawned threads to that of the initializing thread.
- 
Constructor Details- 
QuartzSchedulerResourcespublic QuartzSchedulerResources()Create an instance with no properties initialized.
 
- 
- 
Method Details- 
getThreadNameGet the name for theQuartzSchedulerThread
- 
setThreadNameSet the name for theQuartzSchedulerThread- Throws:
- IllegalArgumentException- if name is null or empty.
 
- 
getThreadPoolGet theThreadPoolQuartzScheduler
- 
setThreadPoolSet theThreadPoolQuartzScheduler- Throws:
- IllegalArgumentException- if threadPool is null.
 
- 
getJobStoreGet theJobStoreQuartzScheduler
- 
setJobStoreSet theJobStoreQuartzScheduler- Throws:
- IllegalArgumentException- if jobStore is null.
 
- 
getJobRunShellFactoryGet theJobRunShellFactoryQuartzScheduler
- 
setJobRunShellFactorySet theJobRunShellFactoryQuartzScheduler- Throws:
- IllegalArgumentException- if jobRunShellFactory is null.
 
- 
addSchedulerPluginAdd the givenSchedulerPluginQuartzScheduler
- 
getSchedulerPlugins
- 
getMakeSchedulerThreadDaemonpublic boolean getMakeSchedulerThreadDaemon()Get whether to mark the Quartz scheduling thread as daemon.- See Also:
 
- 
setMakeSchedulerThreadDaemonpublic void setMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon) Set whether to mark the Quartz scheduling thread as daemon.- See Also:
 
- 
isThreadsInheritInitializersClassLoadContextpublic boolean isThreadsInheritInitializersClassLoadContext()Get whether to set the class load context of spawned threads to that of the initializing thread.
- 
setThreadsInheritInitializersClassLoadContextpublic void setThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext) Set whether to set the class load context of spawned threads to that of the initializing thread.
- 
getBatchTimeWindowpublic long getBatchTimeWindow()
- 
setBatchTimeWindowpublic void setBatchTimeWindow(long batchTimeWindow) 
- 
getMaxBatchSizepublic int getMaxBatchSize()
- 
setMaxBatchSizepublic void setMaxBatchSize(int maxBatchSize) 
 
-