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
ConstructorDescriptionCreate an instance with no properties initialized. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchedulerPlugin
(SchedulerPlugin plugin) Add the given
for theSchedulerPlugin
QuartzScheduler
long
Get the
for theJobRunShellFactory
to use.QuartzScheduler
Get the
for theJobStore
to use.QuartzScheduler
boolean
Get whether to mark the Quartz scheduling thread as daemon.int
Get the name for the
.QuartzSchedulerThread
Get the
for theThreadPool
to use.QuartzScheduler
boolean
Get whether to set the class load context of spawned threads to that of the initializing thread.void
setBatchTimeWindow
(long batchTimeWindow) void
setJobRunShellFactory
(JobRunShellFactory jobRunShellFactory) Set the
for theJobRunShellFactory
to use.QuartzScheduler
void
setJobStore
(JobStore jobStore) Set the
for theJobStore
to use.QuartzScheduler
void
setMakeSchedulerThreadDaemon
(boolean makeSchedulerThreadDaemon) Set whether to mark the Quartz scheduling thread as daemon.void
setMaxBatchSize
(int maxBatchSize) void
setThreadName
(String threadName) Set the name for the
.QuartzSchedulerThread
void
setThreadPool
(ThreadPool threadPool) Set the
for theThreadPool
to use.QuartzScheduler
void
setThreadsInheritInitializersClassLoadContext
(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 the
for theThreadPool
to use.QuartzScheduler
-
setThreadPool
Set the
for theThreadPool
to use.QuartzScheduler
- Throws:
IllegalArgumentException
- if threadPool is null.
-
getJobStore
Get the
for theJobStore
to use.QuartzScheduler
-
setJobStore
Set the
for theJobStore
to use.QuartzScheduler
- Throws:
IllegalArgumentException
- if jobStore is null.
-
getJobRunShellFactory
Get the
for theJobRunShellFactory
to use.QuartzScheduler
-
setJobRunShellFactory
Set the
for theJobRunShellFactory
to use.QuartzScheduler
- Throws:
IllegalArgumentException
- if jobRunShellFactory is null.
-
addSchedulerPlugin
Add the given
for theSchedulerPlugin
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)
-