1 package org.whatsitcalled.webflange.engine;
2
3 import org.quartz.Job;
4 import org.quartz.JobExecutionContext;
5 import org.quartz.JobExecutionException;
6 import org.whatsitcalled.webflange.ResourceFactory;
7 import org.whatsitcalled.webflange.model.LoadTest;
8
9 public class GrinderTestJob implements Job {
10 private static org.apache.log4j.Logger LOGGER = org.apache.log4j.Logger
11 .getLogger(GrinderTestJob.class);
12
13 public void execute(JobExecutionContext context)
14 throws JobExecutionException {
15 LoadTest loadTest = (LoadTest) context.getJobDetail().getJobDataMap()
16 .get("loadTest");
17 ResourceFactory.getGrinderTestRunner().run(loadTest);
18 }
19 }