public class QuartzSchedulerResources extends Object
Contains all of the resources (JobStore,ThreadPool,
etc.) necessary to create a instance.
QuartzScheduler
QuartzScheduler| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_REGISTRY_ALWAYS |
static String |
CREATE_REGISTRY_AS_NEEDED |
static String |
CREATE_REGISTRY_NEVER |
| Constructor and Description |
|---|
QuartzSchedulerResources()
Create an instance with no properties initialized.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSchedulerPlugin(ISchedulerPlugin plugin)
Add the given
for the to use. |
long |
getBatchTimeWindow() |
String |
getInstanceId()
Get the instance Id for the
. |
IJobRunShellFactory |
getJobRunShellFactory()
Get the
for the
to use. |
IJobStore |
getJobStore()
Get the
for the
to use. |
boolean |
getMakeSchedulerThreadDaemon()
Get whether to mark the Quartz scheduling thread as daemon.
|
int |
getMaxBatchSize() |
String |
getName()
Get the name for the
. |
List<ISchedulerPlugin> |
getSchedulerPlugins()
|
IThreadExecutor |
getThreadExecutor()
Get the ThreadExecutor which runs the QuartzSchedulerThread
|
String |
getThreadName()
Get the name for the
. |
IThreadPool |
getThreadPool()
Get the
for the
to use. |
String |
getUniqueIdentifier() |
static String |
getUniqueIdentifier(String schedName,
String schedInstId) |
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 |
setInstanceId(String instanceId)
Set the name for the
. |
void |
setInterruptJobsOnShutdown(boolean interruptJobsOnShutdown) |
void |
setInterruptJobsOnShutdownWithWait(boolean interruptJobsOnShutdownWithWait) |
void |
setJobRunShellFactory(IJobRunShellFactory jobRunShellFactory)
Set the
for the
to use. |
void |
setJobStore(IJobStore 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 |
setName(String name)
Set the name for the
. |
void |
setThreadExecutor(IThreadExecutor threadExecutor)
Set the ThreadExecutor which runs the QuartzSchedulerThread
|
void |
setThreadName(String threadName)
Set the name for the
. |
void |
setThreadPool(IThreadPool 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 static final String CREATE_REGISTRY_NEVER
public static final String CREATE_REGISTRY_ALWAYS
public static final String CREATE_REGISTRY_AS_NEEDED
public QuartzSchedulerResources()
Create an instance with no properties initialized.
public String getName()
Get the name for the .
QuartzScheduler
public void setName(String name)
Set the name for the .
QuartzScheduler
IllegalArgumentException - if name is null or empty.public String getInstanceId()
Get the instance Id for the .
QuartzScheduler
public void setInstanceId(String instanceId)
Set the name for the .
QuartzScheduler
IllegalArgumentException - if name is null or empty.public String getUniqueIdentifier()
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 IThreadPool getThreadPool()
Get the for the
IThreadPool to use.
QuartzScheduler
public void setThreadPool(IThreadPool threadPool)
Set the for the
IThreadPool to use.
QuartzScheduler
IllegalArgumentException - if threadPool is null.public IJobStore getJobStore()
Get the for the
IJobStore to use.
QuartzScheduler
public void setJobStore(IJobStore jobStore)
Set the for the
IJobStore to use.
QuartzScheduler
IllegalArgumentException - if jobStore is null.public IJobRunShellFactory getJobRunShellFactory()
Get the for the
IJobRunShellFactory to use.
QuartzScheduler
public void setJobRunShellFactory(IJobRunShellFactory jobRunShellFactory)
Set the for the
IJobRunShellFactory to use.
QuartzScheduler
IllegalArgumentException - if jobRunShellFactory is null.public void addSchedulerPlugin(ISchedulerPlugin plugin)
Add the given
for the ISchedulerPlugin 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<ISchedulerPlugin> getSchedulerPlugins()
Get the List of all
s for the
ISchedulerPlugin 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 IThreadExecutor getThreadExecutor()
public void setThreadExecutor(IThreadExecutor threadExecutor)
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 © 2016–2021 Philip Helger. All rights reserved.