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
Post a Comment