Package com.axelor.quartz
Class JobRunner
java.lang.Object
com.axelor.quartz.JobRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Initialize the scheduler.boolean
void
onRemove
(PreRequest event) void
remove
(MetaSchedule schedule) Remove the given job.void
Remove all the jobs of the given tenant group.void
restart()
Restart tasksvoid
shutdown()
Shutdown the scheduler.void
stop()
Stop tasksvoid
update
(MetaSchedule schedule) Update the given job.void
Update all the jobs for the given tenant group.
-
Constructor Details
-
JobRunner
public JobRunner()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
update
Update the given job.- Parameters:
schedule
- the scheduled job- Throws:
SchedulerException
-
update
Update all the jobs for the given tenant group.- Parameters:
group
- the tenant group- Throws:
SchedulerException
-
remove
Remove the given job.- Parameters:
schedule
- the job to remove- Throws:
SchedulerException
-
remove
Remove all the jobs of the given tenant group.- Parameters:
group
- the tenant group- Throws:
SchedulerException
-
init
public void init()Initialize the scheduler. -
shutdown
public void shutdown()Shutdown the scheduler. -
restart
public void restart()Restart tasks -
stop
public void stop()Stop tasks -
onRemove
-