public static Map < String , List < Trigger > > getAllJobsAndTriggers ( ) throws SundialSchedulerException { Map < String , List < Trigger > > allJobsMap = new TreeMap < String , List < Trigger > > ( ) ; try { Set < String > allJobKeys = getScheduler ( ) . getJobKeys ( ) ; for ( String jobKey : allJobKeys ) { List < Trigger > triggers = getScheduler ( ) . getTriggersOfJob ( jobKey ) ; allJobsMap . put ( jobKey , triggers ) ; } } catch ( SchedulerException e ) { throw new SundialSchedulerException ( "COULD NOT GET JOB NAMES!!!" , e ) ; } return allJobsMap ; }
Generates a Map of all Job names with corresponding Triggers