use of org.quartz.JobKey in project kernel by exoplatform.
the class JobSchedulerServiceImpl method getAllJobs.
public List<JobDetail> getAllJobs() throws Exception {
List<JobDetail> jlist = new ArrayList<JobDetail>();
List<String> jgroups = scheduler_.getJobGroupNames();
for (int i = 0, length = jgroups.size(); i < length; i++) {
Set<JobKey> jkeys = scheduler_.getJobKeys(GroupMatcher.jobGroupEquals(jgroups.get(i)));
for (JobKey jkey : jkeys) {
jlist.add(scheduler_.getJobDetail(jkey));
}
}
return jlist;
}
Aggregations