public static Map < String , SchedulerTemplate > getSchedulers ( ) { Map < String , SchedulerTemplate > schedulers = new HashMap < String , SchedulerTemplate > ( ) ; MySchedule mySchedule = MySchedule . getInstance ( ) ; for ( String settingsName : mySchedule . getSchedulerSettingsNames ( ) ) { SchedulerTemplate schedulerTemplate = mySchedule . getScheduler ( settingsName ) ; schedulers . put ( settingsName , schedulerTemplate ) ; } return schedulers ; }
Get the settings names and corresponding schedulers of all schedulers defined in myschedule .