public class RedisJobStore extends Object implements org.quartz.spi.JobStore
| Modifier and Type | Field and Description |
|---|---|
protected int |
conRetries
connection retries counter
|
protected int |
conTimeout
socket connection timeout in ms
|
protected short |
database
Redis database
|
protected String |
host
Redis host
|
protected String |
instanceId |
protected String |
keyDelimiter
Redis key delimiter
|
protected String |
keyPrefix
Redis key prefix
|
protected int |
lockTimeout
Redis lock timeout in milliseconds
|
protected String |
masterGroupName
Redis sentinel master group name
|
protected String |
password
Redis password
|
protected int |
port
Redis port
|
protected int |
soTimeout
socket timeout in ms
|
protected boolean |
ssl
ssl flag
|
protected AbstractRedisStorage |
storage |
| Constructor and Description |
|---|
RedisJobStore() |
| Modifier and Type | Method and Description |
|---|---|
List<org.quartz.spi.OperableTrigger> |
acquireNextTriggers(long noLaterThan,
int maxCount,
long timeWindow)
Get a handle to the next trigger to be fired, and mark it as 'reserved'
by the calling scheduler.
|
boolean |
checkExists(org.quartz.JobKey jobKey)
Determine whether a
Job with the given identifier already
exists within the scheduler. |
boolean |
checkExists(org.quartz.TriggerKey triggerKey)
Determine whether a
Trigger with the given identifier already
exists within the scheduler. |
void |
clearAllSchedulingData()
Clear (delete!) all scheduling data - all
Jobs, Triggers
Calendars. |
List<String> |
getCalendarNames()
Get the names of all of the
s
in the JobStore. |
long |
getEstimatedTimeToReleaseAndAcquireTrigger()
How long (in milliseconds) the
JobStore implementation
estimates that it will take to release a trigger and acquire a new one. |
List<String> |
getJobGroupNames()
Get the names of all of the
groups. |
Set<org.quartz.JobKey> |
getJobKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher)
Get the keys of all of the
s that
have the given group name. |
int |
getNumberOfCalendars()
Get the number of
s that are
stored in the JobsStore. |
int |
getNumberOfJobs()
Get the number of
s that are
stored in the JobsStore. |
int |
getNumberOfTriggers()
Get the number of
s that are
stored in the JobsStore. |
String |
getPassword() |
Set<String> |
getPausedTriggerGroups() |
List<String> |
getTriggerGroupNames()
Get the names of all of the
groups. |
Set<org.quartz.TriggerKey> |
getTriggerKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
Get the names of all of the
s
that have the given group name. |
List<org.quartz.spi.OperableTrigger> |
getTriggersForJob(org.quartz.JobKey jobKey)
Get all of the Triggers that are associated to the given Job.
|
org.quartz.Trigger.TriggerState |
getTriggerState(org.quartz.TriggerKey triggerKey)
Get the current state of the identified
. |
void |
initialize(org.quartz.spi.ClassLoadHelper loadHelper,
org.quartz.spi.SchedulerSignaler signaler)
Called by the QuartzScheduler before the
JobStore is
used, in order to give the it a chance to initialize. |
boolean |
isClustered()
Whether or not the
JobStore implementation is redisCluster. |
void |
pauseAll()
Pause all triggers - equivalent of calling
pauseTriggerGroup(group)
on every group. |
void |
pauseJob(org.quartz.JobKey jobKey)
Pause the
with the given name - by
pausing all of its current Triggers. |
Collection<String> |
pauseJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> groupMatcher)
Pause all of the
in the given
group - by pausing all of their Triggers. |
void |
pauseTrigger(org.quartz.TriggerKey triggerKey)
Pause the
with the given key. |
Collection<String> |
pauseTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
Pause all of the
in the
given group. |
void |
releaseAcquiredTrigger(org.quartz.spi.OperableTrigger trigger)
Inform the
JobStore that the scheduler no longer plans to
fire the given Trigger, that it had previously acquired
(reserved). |
boolean |
removeCalendar(String calName)
Remove (delete) the
with the
given name. |
boolean |
removeJob(org.quartz.JobKey jobKey)
Remove (delete) the
with the given
key, and any s that reference
it. |
boolean |
removeJobs(List<org.quartz.JobKey> jobKeys) |
boolean |
removeTrigger(org.quartz.TriggerKey triggerKey)
Remove (delete) the
with the
given key. |
boolean |
removeTriggers(List<org.quartz.TriggerKey> triggerKeys) |
boolean |
replaceTrigger(org.quartz.TriggerKey triggerKey,
org.quartz.spi.OperableTrigger newTrigger)
Remove (delete) the
with the
given key, and store the new given one - which must be associated
with the same job. |
void |
resumeAll()
Resume (un-pause) all triggers - equivalent of calling
resumeTriggerGroup(group)
on every group. |
void |
resumeJob(org.quartz.JobKey jobKey)
Resume (un-pause) the
with the
given key. |
Collection<String> |
resumeJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher)
Resume (un-pause) all of the
in
the given group. |
void |
resumeTrigger(org.quartz.TriggerKey triggerKey)
Resume (un-pause) the
with the
given key. |
Collection<String> |
resumeTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
Resume (un-pause) all of the
in the given group. |
org.quartz.Calendar |
retrieveCalendar(String calName)
Retrieve the given
. |
org.quartz.JobDetail |
retrieveJob(org.quartz.JobKey jobKey)
Retrieve the
for the given
. |
org.quartz.spi.OperableTrigger |
retrieveTrigger(org.quartz.TriggerKey triggerKey)
Retrieve the given
. |
void |
schedulerPaused()
Called by the QuartzScheduler to inform the
JobStore that
the scheduler has been paused. |
void |
schedulerResumed()
Called by the QuartzScheduler to inform the
JobStore that
the scheduler has resumed after being paused. |
void |
schedulerStarted()
Called by the QuartzScheduler to inform the
JobStore that
the scheduler has started. |
void |
setDatabase(int database) |
void |
setDatabase(String database) |
void |
setHost(String host) |
void |
setInstanceId(String schedInstId)
Inform the
JobStore of the Scheduler instance's Id,
prior to initialize being invoked. |
void |
setInstanceName(String schedName)
Inform the
JobStore of the Scheduler instance's name,
prior to initialize being invoked. |
RedisJobStore |
setJedisCluster(redis.clients.jedis.JedisCluster jedisCluster) |
RedisJobStore |
setJedisPool(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool) |
void |
setKeyDelimiter(String keyDelimiter) |
void |
setKeyPrefix(String keyPrefix) |
void |
setLockTimeout(int lockTimeout) |
void |
setLockTimeout(String lockTimeout) |
void |
setMasterGroupName(String masterGroupName) |
void |
setMisfireThreshold(int misfireThreshold) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setPort(String port) |
void |
setRedisCluster(boolean clustered) |
void |
setRedisSentinel(boolean sentinel) |
void |
setSsl(boolean ssl) |
void |
setSsl(String ssl) |
void |
setThreadPoolSize(int poolSize)
Tells the JobStore the pool size used to execute jobs
|
void |
shutdown()
Called by the QuartzScheduler to inform the
JobStore that
it should free up all of it's resources because the scheduler is
shutting down. |
void |
storeCalendar(String name,
org.quartz.Calendar calendar,
boolean replaceExisting,
boolean updateTriggers)
Store the given
. |
void |
storeJob(org.quartz.JobDetail newJob,
boolean replaceExisting)
Store the given
. |
void |
storeJobAndTrigger(org.quartz.JobDetail newJob,
org.quartz.spi.OperableTrigger newTrigger)
Store the given
and . |
void |
storeJobsAndTriggers(Map<org.quartz.JobDetail,Set<? extends org.quartz.Trigger>> triggersAndJobs,
boolean replace) |
void |
storeTrigger(org.quartz.spi.OperableTrigger newTrigger,
boolean replaceExisting)
Store the given
. |
boolean |
supportsPersistence() |
void |
triggeredJobComplete(org.quartz.spi.OperableTrigger trigger,
org.quartz.JobDetail jobDetail,
org.quartz.Trigger.CompletedExecutionInstruction triggerInstCode)
Inform the
JobStore that the scheduler has completed the
firing of the given Trigger (and the execution of its
associated Job completed, threw an exception, or was vetoed),
and that the
in the given JobDetail should be updated if the Job
is stateful. |
List<org.quartz.spi.TriggerFiredResult> |
triggersFired(List<org.quartz.spi.OperableTrigger> triggers)
Inform the
JobStore that the scheduler is now firing the
given Trigger (executing its associated Job),
that it had previously acquired (reserved). |
protected int lockTimeout
protected String host
protected int port
protected String password
protected short database
protected String masterGroupName
protected String keyPrefix
protected String keyDelimiter
protected String instanceId
protected AbstractRedisStorage storage
protected int conTimeout
protected int conRetries
protected int soTimeout
protected boolean ssl
public RedisJobStore setJedisPool(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool)
public RedisJobStore setJedisCluster(redis.clients.jedis.JedisCluster jedisCluster)
public void setMisfireThreshold(int misfireThreshold)
public void initialize(org.quartz.spi.ClassLoadHelper loadHelper,
org.quartz.spi.SchedulerSignaler signaler)
throws org.quartz.SchedulerConfigException
JobStore is
used, in order to give the it a chance to initialize.initialize in interface org.quartz.spi.JobStoreloadHelper - class loader helpersignaler - schedule signaler objectorg.quartz.SchedulerConfigExceptionpublic void schedulerStarted()
throws org.quartz.SchedulerException
JobStore that
the scheduler has started.schedulerStarted in interface org.quartz.spi.JobStoreorg.quartz.SchedulerExceptionpublic void schedulerPaused()
JobStore that
the scheduler has been paused.schedulerPaused in interface org.quartz.spi.JobStorepublic void schedulerResumed()
JobStore that
the scheduler has resumed after being paused.schedulerResumed in interface org.quartz.spi.JobStorepublic void shutdown()
JobStore that
it should free up all of it's resources because the scheduler is
shutting down.shutdown in interface org.quartz.spi.JobStorepublic boolean supportsPersistence()
supportsPersistence in interface org.quartz.spi.JobStorepublic long getEstimatedTimeToReleaseAndAcquireTrigger()
JobStore implementation
estimates that it will take to release a trigger and acquire a new one.getEstimatedTimeToReleaseAndAcquireTrigger in interface org.quartz.spi.JobStorepublic boolean isClustered()
JobStore implementation is redisCluster.isClustered in interface org.quartz.spi.JobStorepublic void storeJobAndTrigger(org.quartz.JobDetail newJob,
org.quartz.spi.OperableTrigger newTrigger)
throws org.quartz.ObjectAlreadyExistsException,
org.quartz.JobPersistenceException
JobDetail and Trigger.storeJobAndTrigger in interface org.quartz.spi.JobStorenewJob - The JobDetail to be stored.newTrigger - The Trigger to be stored.org.quartz.ObjectAlreadyExistsException - if a Job with the same name/group already
exists.org.quartz.JobPersistenceExceptionpublic void storeJob(org.quartz.JobDetail newJob,
boolean replaceExisting)
throws org.quartz.ObjectAlreadyExistsException,
org.quartz.JobPersistenceException
JobDetail.storeJob in interface org.quartz.spi.JobStorenewJob - The JobDetail to be stored.replaceExisting - If true, any Job existing in the
JobStore with the same name & group should be
over-written.org.quartz.ObjectAlreadyExistsException - if a Job with the same name/group already
exists, and replaceExisting is set to false.org.quartz.JobPersistenceExceptionpublic void storeJobsAndTriggers(Map<org.quartz.JobDetail,Set<? extends org.quartz.Trigger>> triggersAndJobs, boolean replace) throws org.quartz.ObjectAlreadyExistsException, org.quartz.JobPersistenceException
storeJobsAndTriggers in interface org.quartz.spi.JobStoreorg.quartz.ObjectAlreadyExistsExceptionorg.quartz.JobPersistenceExceptionpublic boolean removeJob(org.quartz.JobKey jobKey)
throws org.quartz.JobPersistenceException
Job with the given
key, and any Trigger s that reference
it.
If removal of the Job results in an empty group, the
group should be removed from the JobStore's list of
known group names.
removeJob in interface org.quartz.spi.JobStorejobKey - the key of the job to be removedtrue if a Job with the given name &
group was found and removed from the store.org.quartz.JobPersistenceExceptionpublic boolean removeJobs(List<org.quartz.JobKey> jobKeys) throws org.quartz.JobPersistenceException
removeJobs in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic org.quartz.JobDetail retrieveJob(org.quartz.JobKey jobKey)
throws org.quartz.JobPersistenceException
JobDetail for the given
Job.retrieveJob in interface org.quartz.spi.JobStorejobKey - the JobKey describing the desired jobJob, or null if there is no match.org.quartz.JobPersistenceExceptionpublic void storeTrigger(org.quartz.spi.OperableTrigger newTrigger,
boolean replaceExisting)
throws org.quartz.ObjectAlreadyExistsException,
org.quartz.JobPersistenceException
Trigger.storeTrigger in interface org.quartz.spi.JobStorenewTrigger - The Trigger to be stored.replaceExisting - If true, any Trigger existing in
the JobStore with the same name & group should
be over-written.org.quartz.ObjectAlreadyExistsException - if a Trigger with the same name/group already
exists, and replaceExisting is set to false.org.quartz.JobPersistenceExceptionpauseTriggers(org.quartz.impl.matchers.GroupMatcher)public boolean removeTrigger(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger with the
given key.
If removal of the Trigger results in an empty group, the
group should be removed from the JobStore's list of
known group names.
If removal of the Trigger results in an 'orphaned' Job
that is not 'durable', then the Job should be deleted
also.
removeTrigger in interface org.quartz.spi.JobStoretriggerKey - the key of the trigger to be removedtrue if a Trigger with the given
name & group was found and removed from the store.org.quartz.JobPersistenceExceptionpublic boolean removeTriggers(List<org.quartz.TriggerKey> triggerKeys) throws org.quartz.JobPersistenceException
removeTriggers in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic boolean replaceTrigger(org.quartz.TriggerKey triggerKey,
org.quartz.spi.OperableTrigger newTrigger)
throws org.quartz.JobPersistenceException
Trigger with the
given key, and store the new given one - which must be associated
with the same job.replaceTrigger in interface org.quartz.spi.JobStoretriggerKey - the key of the trigger to be replacednewTrigger - The new Trigger to be stored.true if a Trigger with the given
name & group was found and removed from the store.org.quartz.JobPersistenceExceptionpublic org.quartz.spi.OperableTrigger retrieveTrigger(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger.retrieveTrigger in interface org.quartz.spi.JobStoretriggerKey - the key of the desired triggerTrigger, or null if there is no
match.org.quartz.JobPersistenceExceptionpublic boolean checkExists(org.quartz.JobKey jobKey)
throws org.quartz.JobPersistenceException
Job with the given identifier already
exists within the scheduler.checkExists in interface org.quartz.spi.JobStorejobKey - the identifier to check fororg.quartz.JobPersistenceExceptionpublic boolean checkExists(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger with the given identifier already
exists within the scheduler.checkExists in interface org.quartz.spi.JobStoretriggerKey - the identifier to check fororg.quartz.JobPersistenceExceptionpublic void clearAllSchedulingData()
throws org.quartz.JobPersistenceException
Jobs, Triggers
Calendars.clearAllSchedulingData in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic void storeCalendar(String name, org.quartz.Calendar calendar, boolean replaceExisting, boolean updateTriggers) throws org.quartz.ObjectAlreadyExistsException, org.quartz.JobPersistenceException
Calendar.storeCalendar in interface org.quartz.spi.JobStorename - The name of the calendarcalendar - The Calendar to be stored.replaceExisting - If true, any Calendar existing
in the JobStore with the same name & group
should be over-written.updateTriggers - If true, any Triggers existing
in the JobStore that reference an existing
Calendar with the same name with have their next fire time
re-computed with the new Calendar.org.quartz.ObjectAlreadyExistsException - if a Calendar with the same name already
exists, and replaceExisting is set to false.org.quartz.JobPersistenceExceptionpublic boolean removeCalendar(String calName) throws org.quartz.JobPersistenceException
Calendar with the
given name.
If removal of the Calendar would result in
Triggers pointing to non-existent calendars, then a
JobPersistenceException will be thrown.
removeCalendar in interface org.quartz.spi.JobStorecalName - The name of the Calendar to be removed.true if a Calendar with the given name
was found and removed from the store.org.quartz.JobPersistenceExceptionpublic org.quartz.Calendar retrieveCalendar(String calName) throws org.quartz.JobPersistenceException
Trigger.retrieveCalendar in interface org.quartz.spi.JobStorecalName - The name of the Calendar to be retrieved.Calendar, or null if there is no
match.org.quartz.JobPersistenceExceptionpublic int getNumberOfJobs()
throws org.quartz.JobPersistenceException
Job s that are
stored in the JobsStore.getNumberOfJobs in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic int getNumberOfTriggers()
throws org.quartz.JobPersistenceException
Trigger s that are
stored in the JobsStore.getNumberOfTriggers in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic int getNumberOfCalendars()
throws org.quartz.JobPersistenceException
Calendar s that are
stored in the JobsStore.getNumberOfCalendars in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic Set<org.quartz.JobKey> getJobKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws org.quartz.JobPersistenceException
Job s that
have the given group name.
If there are no jobs in the given group name, the result should be
an empty collection (not null).
getJobKeys in interface org.quartz.spi.JobStorematcher - the matcher for job key comparisonorg.quartz.JobPersistenceExceptionpublic Set<org.quartz.TriggerKey> getTriggerKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.JobPersistenceException
Trigger s
that have the given group name.
If there are no triggers in the given group name, the result should be a
zero-length array (not null).
getTriggerKeys in interface org.quartz.spi.JobStorematcher - the matcher with which to compare trigger groupsorg.quartz.JobPersistenceExceptionpublic List<String> getJobGroupNames() throws org.quartz.JobPersistenceException
Job
groups.
If there are no known group names, the result should be a zero-length
array (not null).
getJobGroupNames in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic List<String> getTriggerGroupNames() throws org.quartz.JobPersistenceException
Trigger
groups.
If there are no known group names, the result should be a zero-length
array (not null).
getTriggerGroupNames in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic List<String> getCalendarNames() throws org.quartz.JobPersistenceException
Calendar s
in the JobStore.
If there are no Calendars in the given group name, the result should be
a zero-length array (not null).
getCalendarNames in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic List<org.quartz.spi.OperableTrigger> getTriggersForJob(org.quartz.JobKey jobKey) throws org.quartz.JobPersistenceException
If there are no matches, a zero-length array should be returned.
getTriggersForJob in interface org.quartz.spi.JobStorejobKey - the key of the job for which to retrieve triggersorg.quartz.JobPersistenceExceptionpublic org.quartz.Trigger.TriggerState getTriggerState(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger.getTriggerState in interface org.quartz.spi.JobStoretriggerKey - the key of the trigger for which to retrieve stateorg.quartz.JobPersistenceExceptionTrigger.TriggerStatepublic void pauseTrigger(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger with the given key.pauseTrigger in interface org.quartz.spi.JobStoretriggerKey - the key for the trigger to be pausedorg.quartz.JobPersistenceExceptionresumeTrigger(org.quartz.TriggerKey)public Collection<String> pauseTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.JobPersistenceException
Triggers in the
given group.
The JobStore should "remember" that the group is paused, and impose the pause on any new triggers that are added to the group while the group is paused.
pauseTriggers in interface org.quartz.spi.JobStorematcher - a trigger group matcherorg.quartz.JobPersistenceExceptionpublic void pauseJob(org.quartz.JobKey jobKey)
throws org.quartz.JobPersistenceException
Job with the given name - by
pausing all of its current Triggers.pauseJob in interface org.quartz.spi.JobStorejobKey - the key of the job to be pausedorg.quartz.JobPersistenceExceptionresumeJob(org.quartz.JobKey)public Collection<String> pauseJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> groupMatcher) throws org.quartz.JobPersistenceException
Jobs in the given
group - by pausing all of their Triggers.
The JobStore should "remember" that the group is paused, and impose the pause on any new jobs that are added to the group while the group is paused.
pauseJobs in interface org.quartz.spi.JobStoregroupMatcher - the mather which will determine which job group should be pausedorg.quartz.JobPersistenceExceptionresumeJobs(org.quartz.impl.matchers.GroupMatcher)public void resumeTrigger(org.quartz.TriggerKey triggerKey)
throws org.quartz.JobPersistenceException
Trigger with the
given key.
If the Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeTrigger in interface org.quartz.spi.JobStoretriggerKey - the key of the trigger to be resumedorg.quartz.JobPersistenceExceptionpauseTrigger(org.quartz.TriggerKey)public Collection<String> resumeTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.JobPersistenceException
Triggers
in the given group.
If any Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeTriggers in interface org.quartz.spi.JobStorematcher - a trigger group matcherorg.quartz.JobPersistenceExceptionpauseTriggers(org.quartz.impl.matchers.GroupMatcher)public Set<String> getPausedTriggerGroups() throws org.quartz.JobPersistenceException
getPausedTriggerGroups in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpublic void resumeJob(org.quartz.JobKey jobKey)
throws org.quartz.JobPersistenceException
Job with the
given key.
If any of the Job'sTrigger s missed one
or more fire-times, then the Trigger's misfire
instruction will be applied.
resumeJob in interface org.quartz.spi.JobStorejobKey - the key of the job to be resumedorg.quartz.JobPersistenceExceptionpauseJob(org.quartz.JobKey)public Collection<String> resumeJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws org.quartz.JobPersistenceException
Jobs in
the given group.
If any of the Job s had Trigger s that
missed one or more fire-times, then the Trigger's
misfire instruction will be applied.
resumeJobs in interface org.quartz.spi.JobStorematcher - the matcher for job group name comparisonorg.quartz.JobPersistenceExceptionpauseJobs(org.quartz.impl.matchers.GroupMatcher)public void pauseAll()
throws org.quartz.JobPersistenceException
pauseTriggerGroup(group)
on every group.
When resumeAll() is called (to un-pause), trigger misfire
instructions WILL be applied.
pauseAll in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionresumeAll(),
pauseTriggers(org.quartz.impl.matchers.GroupMatcher)public void resumeAll()
throws org.quartz.JobPersistenceException
resumeTriggerGroup(group)
on every group.
If any Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeAll in interface org.quartz.spi.JobStoreorg.quartz.JobPersistenceExceptionpauseAll()public List<org.quartz.spi.OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow) throws org.quartz.JobPersistenceException
acquireNextTriggers in interface org.quartz.spi.JobStorenoLaterThan - If > 0, the JobStore should only return a Trigger
that will fire no later than the time represented in this value as
milliseconds.maxCount - the maximum number of triggers to returntimeWindow - @see #releaseAcquiredTrigger(Trigger)org.quartz.JobPersistenceExceptionpublic void releaseAcquiredTrigger(org.quartz.spi.OperableTrigger trigger)
JobStore that the scheduler no longer plans to
fire the given Trigger, that it had previously acquired
(reserved).releaseAcquiredTrigger in interface org.quartz.spi.JobStoretrigger - the trigger to be releasedpublic List<org.quartz.spi.TriggerFiredResult> triggersFired(List<org.quartz.spi.OperableTrigger> triggers) throws org.quartz.JobPersistenceException
JobStore that the scheduler is now firing the
given Trigger (executing its associated Job),
that it had previously acquired (reserved).triggersFired in interface org.quartz.spi.JobStoretriggers - a list of triggers which are being fired by the schedulerorg.quartz.JobPersistenceExceptionpublic void triggeredJobComplete(org.quartz.spi.OperableTrigger trigger,
org.quartz.JobDetail jobDetail,
org.quartz.Trigger.CompletedExecutionInstruction triggerInstCode)
JobStore that the scheduler has completed the
firing of the given Trigger (and the execution of its
associated Job completed, threw an exception, or was vetoed),
and that the JobDataMap
in the given JobDetail should be updated if the Job
is stateful.triggeredJobComplete in interface org.quartz.spi.JobStoretrigger - the completetd triggerjobDetail - the completed jobtriggerInstCode - the trigger completion codepublic void setLockTimeout(int lockTimeout)
public void setLockTimeout(String lockTimeout)
public void setHost(String host)
public void setPort(int port)
public void setPort(String port)
public void setDatabase(int database)
public void setDatabase(String database)
public void setSsl(boolean ssl)
public void setSsl(String ssl)
public void setKeyPrefix(String keyPrefix)
public void setKeyDelimiter(String keyDelimiter)
public void setRedisCluster(boolean clustered)
public void setRedisSentinel(boolean sentinel)
public void setMasterGroupName(String masterGroupName)
public String getPassword()
public void setPassword(String password)
public void setInstanceId(String schedInstId)
JobStore of the Scheduler instance's Id,
prior to initialize being invoked.setInstanceId in interface org.quartz.spi.JobStoreschedInstId - the instanceid for the current schedulerpublic void setInstanceName(String schedName)
JobStore of the Scheduler instance's name,
prior to initialize being invoked.setInstanceName in interface org.quartz.spi.JobStoreschedName - the name of the current schedulerpublic void setThreadPoolSize(int poolSize)
setThreadPoolSize in interface org.quartz.spi.JobStorepoolSize - amount of threads allocated for job executionCopyright © 2018. All rights reserved.