java - How can I get all triggers for a job? -


is there way triggers job, job class name?

something scheduler.gettriggersofjob(jobkey.forclassname('my.awesome.classname'))

no there no direct way. but, can scheduler#getjobkeys(groupmatcher<jobkey> matcher) find job keys group or use jobkey jobkey(string jobname) find key job name.

list<trigger> triggerlist = (list<trigger>) yourscheduler.gettriggersofjob(yourjobkey); 

moreover, if have jobdetail can directly retrieve jobkey jobdetail.getkey()


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -