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 instance.- Author:
- James House
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance with no properties initialized. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchedulerPlugin(SchedulerPlugin plugin) Add the givenfor theSchedulerPluginto use.QuartzSchedulerlongGet thefor theJobRunShellFactoryto use.QuartzSchedulerGet thefor theJobStoreto use.QuartzSchedulerbooleanGet whether to mark the Quartz scheduling thread as daemon.intGet the name for the.QuartzSchedulerThreadGet thefor theThreadPoolto use.QuartzSchedulerbooleanGet whether to set the class load context of spawned threads to that of the initializing thread.voidsetBatchTimeWindow(long batchTimeWindow) voidsetJobRunShellFactory(JobRunShellFactory jobRunShellFactory) Set thefor theJobRunShellFactoryto use.QuartzSchedulervoidsetJobStore(JobStore jobStore) Set thefor theJobStoreto use.QuartzSchedulervoidsetMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon) Set whether to mark the Quartz scheduling thread as daemon.voidsetMaxBatchSize(int maxBatchSize) voidsetThreadName(String threadName) Set the name for the.QuartzSchedulerThreadvoidsetThreadPool(ThreadPool threadPool) Set thefor theThreadPoolto use.QuartzSchedulervoidsetThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext) Set whether to set the class load context of spawned threads to that of the initializing thread.
-
Constructor Details
-
QuartzSchedulerResources
public QuartzSchedulerResources()Create an instance with no properties initialized.
-
-
Method Details
-
getThreadName
Get the name for the.QuartzSchedulerThread -
setThreadName
Set the name for the.QuartzSchedulerThread- Throws:
IllegalArgumentException- if name is null or empty.
-
getThreadPool
Get thefor theThreadPoolto use.QuartzScheduler -
setThreadPool
Set thefor theThreadPoolto use.QuartzScheduler- Throws:
IllegalArgumentException- if threadPool is null.
-
getJobStore
Get thefor theJobStoreto use.QuartzScheduler -
setJobStore
Set thefor theJobStoreto use.QuartzScheduler- Throws:
IllegalArgumentException- if jobStore is null.
-
getJobRunShellFactory
Get thefor theJobRunShellFactoryto use.QuartzScheduler -
setJobRunShellFactory
Set thefor theJobRunShellFactoryto use.QuartzScheduler- Throws:
IllegalArgumentException- if jobRunShellFactory is null.
-
addSchedulerPlugin
Add the givenfor theSchedulerPluginto use. This method expects the plugin's "initialize" method to be invoked externally (either before or after this method is called).QuartzScheduler -
getSchedulerPlugins
-
getMakeSchedulerThreadDaemon
public boolean getMakeSchedulerThreadDaemon()Get whether to mark the Quartz scheduling thread as daemon.- See Also:
-
setMakeSchedulerThreadDaemon
public void setMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon) Set whether to mark the Quartz scheduling thread as daemon.- See Also:
-
isThreadsInheritInitializersClassLoadContext
public boolean isThreadsInheritInitializersClassLoadContext()Get whether to set the class load context of spawned threads to that of the initializing thread. -
setThreadsInheritInitializersClassLoadContext
public void setThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext) Set whether to set the class load context of spawned threads to that of the initializing thread. -
getBatchTimeWindow
public long getBatchTimeWindow() -
setBatchTimeWindow
public void setBatchTimeWindow(long batchTimeWindow) -
getMaxBatchSize
public int getMaxBatchSize() -
setMaxBatchSize
public void setMaxBatchSize(int maxBatchSize)
-