Package com.logicaldoc.core.task
Class DummyScheduler
java.lang.Object
com.logicaldoc.core.task.DummyScheduler
- All Implemented Interfaces:
org.quartz.Scheduler
-
Field Summary
Fields inherited from interface org.quartz.Scheduler
DEFAULT_FAIL_OVER_GROUP, DEFAULT_GROUP, DEFAULT_RECOVERY_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_FIRETIME_IN_MILLISECONDS, FAILED_JOB_ORIGINAL_TRIGGER_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_NAME, FAILED_JOB_ORIGINAL_TRIGGER_SCHEDULED_FIRETIME_IN_MILLISECONDS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCalendar
(String calName, org.quartz.Calendar calendar, boolean replace, boolean updateTriggers) void
addJob
(org.quartz.JobDetail jobDetail, boolean replace) void
addJob
(org.quartz.JobDetail jobDetail, boolean replace, boolean storeNonDurableWhileAwaitingScheduling) boolean
checkExists
(org.quartz.JobKey jobKey) boolean
checkExists
(org.quartz.TriggerKey triggerKey) void
clear()
boolean
deleteCalendar
(String calName) boolean
deleteJob
(org.quartz.JobKey jobKey) boolean
deleteJobs
(List<org.quartz.JobKey> jobKeys) org.quartz.Calendar
getCalendar
(String calName) org.quartz.SchedulerContext
List
<org.quartz.JobExecutionContext> org.quartz.JobDetail
getJobDetail
(org.quartz.JobKey jobKey) Set
<org.quartz.JobKey> getJobKeys
(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) org.quartz.ListenerManager
org.quartz.SchedulerMetaData
org.quartz.Trigger
getTrigger
(org.quartz.TriggerKey triggerKey) Set
<org.quartz.TriggerKey> getTriggerKeys
(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) List
<? extends org.quartz.Trigger> getTriggersOfJob
(org.quartz.JobKey jobKey) org.quartz.Trigger.TriggerState
getTriggerState
(org.quartz.TriggerKey triggerKey) boolean
boolean
interrupt
(org.quartz.JobKey jobKey) boolean
boolean
boolean
void
pauseAll()
void
pauseJob
(org.quartz.JobKey jobKey) void
pauseJobs
(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) void
pauseTrigger
(org.quartz.TriggerKey triggerKey) void
pauseTriggers
(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) rescheduleJob
(org.quartz.TriggerKey triggerKey, org.quartz.Trigger newTrigger) void
resetTriggerFromErrorState
(org.quartz.TriggerKey triggerKey) void
void
resumeJob
(org.quartz.JobKey jobKey) void
resumeJobs
(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) void
resumeTrigger
(org.quartz.TriggerKey triggerKey) void
resumeTriggers
(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) void
scheduleJob
(org.quartz.JobDetail jobDetail, Set<? extends org.quartz.Trigger> triggersForJob, boolean replace) scheduleJob
(org.quartz.JobDetail jobDetail, org.quartz.Trigger trigger) scheduleJob
(org.quartz.Trigger trigger) void
scheduleJobs
(Map<org.quartz.JobDetail, Set<? extends org.quartz.Trigger>> triggersAndJobs, boolean replace) void
setJobFactory
(org.quartz.spi.JobFactory factory) void
shutdown()
void
shutdown
(boolean waitForJobsToComplete) void
standby()
void
start()
void
startDelayed
(int seconds) void
triggerJob
(org.quartz.JobKey jobKey) void
triggerJob
(org.quartz.JobKey jobKey, org.quartz.JobDataMap data) boolean
unscheduleJob
(org.quartz.TriggerKey triggerKey) boolean
unscheduleJobs
(List<org.quartz.TriggerKey> triggerKeys)
-
Constructor Details
-
DummyScheduler
public DummyScheduler()
-
-
Method Details
-
getSchedulerName
- Specified by:
getSchedulerName
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getSchedulerInstanceId
- Specified by:
getSchedulerInstanceId
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getContext
public org.quartz.SchedulerContext getContext() throws org.quartz.SchedulerException- Specified by:
getContext
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
start
public void start() throws org.quartz.SchedulerException- Specified by:
start
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
startDelayed
public void startDelayed(int seconds) throws org.quartz.SchedulerException - Specified by:
startDelayed
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
isStarted
public boolean isStarted() throws org.quartz.SchedulerException- Specified by:
isStarted
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
standby
public void standby() throws org.quartz.SchedulerException- Specified by:
standby
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
isInStandbyMode
public boolean isInStandbyMode() throws org.quartz.SchedulerException- Specified by:
isInStandbyMode
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
shutdown
public void shutdown() throws org.quartz.SchedulerException- Specified by:
shutdown
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
shutdown
public void shutdown(boolean waitForJobsToComplete) throws org.quartz.SchedulerException - Specified by:
shutdown
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
isShutdown
public boolean isShutdown() throws org.quartz.SchedulerException- Specified by:
isShutdown
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getMetaData
public org.quartz.SchedulerMetaData getMetaData() throws org.quartz.SchedulerException- Specified by:
getMetaData
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getCurrentlyExecutingJobs
public List<org.quartz.JobExecutionContext> getCurrentlyExecutingJobs() throws org.quartz.SchedulerException- Specified by:
getCurrentlyExecutingJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
setJobFactory
public void setJobFactory(org.quartz.spi.JobFactory factory) throws org.quartz.SchedulerException - Specified by:
setJobFactory
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getListenerManager
public org.quartz.ListenerManager getListenerManager() throws org.quartz.SchedulerException- Specified by:
getListenerManager
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
scheduleJob
public Date scheduleJob(org.quartz.JobDetail jobDetail, org.quartz.Trigger trigger) throws org.quartz.SchedulerException - Specified by:
scheduleJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
scheduleJob
- Specified by:
scheduleJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
scheduleJobs
public void scheduleJobs(Map<org.quartz.JobDetail, Set<? extends org.quartz.Trigger>> triggersAndJobs, boolean replace) throws org.quartz.SchedulerException- Specified by:
scheduleJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
scheduleJob
public void scheduleJob(org.quartz.JobDetail jobDetail, Set<? extends org.quartz.Trigger> triggersForJob, boolean replace) throws org.quartz.SchedulerException - Specified by:
scheduleJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
unscheduleJob
public boolean unscheduleJob(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
unscheduleJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
unscheduleJobs
public boolean unscheduleJobs(List<org.quartz.TriggerKey> triggerKeys) throws org.quartz.SchedulerException - Specified by:
unscheduleJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
rescheduleJob
public Date rescheduleJob(org.quartz.TriggerKey triggerKey, org.quartz.Trigger newTrigger) throws org.quartz.SchedulerException - Specified by:
rescheduleJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
addJob
public void addJob(org.quartz.JobDetail jobDetail, boolean replace) throws org.quartz.SchedulerException - Specified by:
addJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
addJob
public void addJob(org.quartz.JobDetail jobDetail, boolean replace, boolean storeNonDurableWhileAwaitingScheduling) throws org.quartz.SchedulerException - Specified by:
addJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
deleteJob
public boolean deleteJob(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
deleteJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
deleteJobs
- Specified by:
deleteJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
triggerJob
public void triggerJob(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
triggerJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
triggerJob
public void triggerJob(org.quartz.JobKey jobKey, org.quartz.JobDataMap data) throws org.quartz.SchedulerException - Specified by:
triggerJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
pauseJob
public void pauseJob(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
pauseJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
pauseJobs
public void pauseJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws org.quartz.SchedulerException - Specified by:
pauseJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
pauseTrigger
public void pauseTrigger(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
pauseTrigger
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
pauseTriggers
public void pauseTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.SchedulerException - Specified by:
pauseTriggers
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resumeJob
public void resumeJob(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
resumeJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resumeJobs
public void resumeJobs(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws org.quartz.SchedulerException - Specified by:
resumeJobs
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resumeTrigger
public void resumeTrigger(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
resumeTrigger
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resumeTriggers
public void resumeTriggers(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.SchedulerException - Specified by:
resumeTriggers
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
pauseAll
public void pauseAll() throws org.quartz.SchedulerException- Specified by:
pauseAll
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resumeAll
public void resumeAll() throws org.quartz.SchedulerException- Specified by:
resumeAll
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getJobGroupNames
- Specified by:
getJobGroupNames
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getJobKeys
public Set<org.quartz.JobKey> getJobKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws org.quartz.SchedulerException - Specified by:
getJobKeys
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getTriggersOfJob
public List<? extends org.quartz.Trigger> getTriggersOfJob(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
getTriggersOfJob
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getTriggerGroupNames
- Specified by:
getTriggerGroupNames
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getTriggerKeys
public Set<org.quartz.TriggerKey> getTriggerKeys(org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws org.quartz.SchedulerException - Specified by:
getTriggerKeys
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getPausedTriggerGroups
- Specified by:
getPausedTriggerGroups
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getJobDetail
public org.quartz.JobDetail getJobDetail(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
getJobDetail
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getTrigger
public org.quartz.Trigger getTrigger(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
getTrigger
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getTriggerState
public org.quartz.Trigger.TriggerState getTriggerState(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
getTriggerState
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
resetTriggerFromErrorState
public void resetTriggerFromErrorState(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
resetTriggerFromErrorState
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
addCalendar
public void addCalendar(String calName, org.quartz.Calendar calendar, boolean replace, boolean updateTriggers) throws org.quartz.SchedulerException - Specified by:
addCalendar
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
deleteCalendar
- Specified by:
deleteCalendar
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getCalendar
- Specified by:
getCalendar
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
getCalendarNames
- Specified by:
getCalendarNames
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
interrupt
public boolean interrupt(org.quartz.JobKey jobKey) throws org.quartz.UnableToInterruptJobException - Specified by:
interrupt
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.UnableToInterruptJobException
-
interrupt
- Specified by:
interrupt
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.UnableToInterruptJobException
-
checkExists
public boolean checkExists(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException - Specified by:
checkExists
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
checkExists
public boolean checkExists(org.quartz.TriggerKey triggerKey) throws org.quartz.SchedulerException - Specified by:
checkExists
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-
clear
public void clear() throws org.quartz.SchedulerException- Specified by:
clear
in interfaceorg.quartz.Scheduler
- Throws:
org.quartz.SchedulerException
-