How to get a list of triggers registered in the quartz scheduler

I need to create gui, showing some kind of "job queue".

I create triggers dynamically and schedule them using jobScheduler.scheduleJob(trigger); . I also pass some data through the dataMap trigger.

How do I return a list of triggers that have not yet triggered?

I found a way to get current work orders, but could not get a list of registered triggers.

Do I have to save this list myself and delete things when it completes by executing a listener trigger?

Is it possible to get the base JobStore and call getTriggerNames () or the like? But how can I get a JobStore. All I have is an instance of Scheduler (the actual StdScheduler), and there is no way to get an instance of JobStore from it.

(I use spring to get Scheduler from SchedulerFactoryBean)

+4
source share
1 answer

Ok, I'm just tired.

There is a getTriggerNames () method in the Scheduler. Therefore, it solves my problem.

+4
source

All Articles