public class QuartzSchedulerResources extends Object
Contains all of the resources (JobStore,ThreadPool, etc.) necessary to create a
instance.
QuartzScheduler
QuartzScheduler| Constructor and Description |
|---|
QuartzSchedulerResources()
Create an instance with no properties initialized.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSchedulerPlugin(SchedulerPlugin plugin)
Add the given
for the to use. |
long |
getBatchTimeWindow() |
JobRunShellFactory |
getJobRunShellFactory()
Get the
for the to use. |
JobStore |
getJobStore()
Get the
for the to use. |
boolean |
getMakeSchedulerThreadDaemon()
Get whether to mark the Quartz scheduling thread as daemon.
|
int |
getMaxBatchSize() |
List<SchedulerPlugin> |
getSchedulerPlugins()
|
String |
getThreadName()
Get the name for the
. |
ThreadPool |
getThreadPool()
Get the
for the to use. |
boolean |
isInterruptJobsOnShutdown() |
boolean |
isInterruptJobsOnShutdownWithWait() |
boolean |
isThreadsInheritInitializersClassLoadContext()
Get whether to set the class load context of spawned threads to that of the initializing thread.
|
void |
setBatchTimeWindow(long batchTimeWindow) |
void |
setInterruptJobsOnShutdown(boolean interruptJobsOnShutdown) |
void |
setInterruptJobsOnShutdownWithWait(boolean interruptJobsOnShutdownWithWait) |
void |
setJobRunShellFactory(JobRunShellFactory jobRunShellFactory)
Set the
for the to use. |
void |
setJobStore(JobStore jobStore)
Set the
for the to use. |
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
. |
void |
setThreadPool(ThreadPool threadPool)
Set the
for the to use. |
void |
setThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext)
Set whether to set the class load context of spawned threads to that of the initializing thread.
|
public QuartzSchedulerResources()
Create an instance with no properties initialized.
public String getThreadName()
Get the name for the .
QuartzSchedulerThread
public void setThreadName(String threadName)
Set the name for the .
QuartzSchedulerThread
IllegalArgumentException - if name is null or empty.public ThreadPool getThreadPool()
Get the for the ThreadPool to use.
QuartzScheduler
public void setThreadPool(ThreadPool threadPool)
Set the for the ThreadPool to use.
QuartzScheduler
IllegalArgumentException - if threadPool is null.public JobStore getJobStore()
Get the for the JobStore to use.
QuartzScheduler
public void setJobStore(JobStore jobStore)
Set the for the JobStore to use.
QuartzScheduler
IllegalArgumentException - if jobStore is null.public JobRunShellFactory getJobRunShellFactory()
Get the for the JobRunShellFactory to use.
QuartzScheduler
public void setJobRunShellFactory(JobRunShellFactory jobRunShellFactory)
Set the for the JobRunShellFactory to use.
QuartzScheduler
IllegalArgumentException - if jobRunShellFactory is null.public void addSchedulerPlugin(SchedulerPlugin plugin)
Add the given for the SchedulerPlugin to use. This method expects
the plugin's "initialize" method to be invoked externally (either before or after this method is called).
QuartzScheduler
public List<SchedulerPlugin> getSchedulerPlugins()
Get the List of all s for the SchedulerPlugin to use.
QuartzScheduler
public boolean getMakeSchedulerThreadDaemon()
Thread.setDaemon(boolean)public void setMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon)
Thread.setDaemon(boolean)public boolean isThreadsInheritInitializersClassLoadContext()
public void setThreadsInheritInitializersClassLoadContext(boolean threadsInheritInitializersClassLoadContext)
public long getBatchTimeWindow()
public void setBatchTimeWindow(long batchTimeWindow)
public int getMaxBatchSize()
public void setMaxBatchSize(int maxBatchSize)
public boolean isInterruptJobsOnShutdown()
public void setInterruptJobsOnShutdown(boolean interruptJobsOnShutdown)
public boolean isInterruptJobsOnShutdownWithWait()
public void setInterruptJobsOnShutdownWithWait(boolean interruptJobsOnShutdownWithWait)
Copyright © 2011–2017 Knowm Inc.. All rights reserved.