import org.quartz.JobExecutionContext; import org.quartz.Scheduler; import org.quartz.impl.StdSchedulerFactory; Scheduler sch=new StdSchedulerFactory().getScheduler(); List jobsList=sch.getCurrentlyExecutingJobs(); Iterator jobsIterator=jobsList.listIterator(); while(jobsIterator.hasNext()){ JobExecutionContext context = (JobExecutionContext) jobsIterator.next(); System.out.println(context.getJobDetail().getName()); }
No comments:
Post a Comment