package com.eactive.eai.rms.common.scheduler;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;

public class TestJob implements Job {
	private static final Logger logger = Logger.getLogger(TestJob.class);

	public void execute(JobExecutionContext context) throws JobExecutionException {
		JobKey jobKey = context.getJobDetail().getKey();
		String data = "";
		for (String key : context.getJobDetail().getJobDataMap().getKeys()) {
			data = data + key + "=" + context.getJobDetail().getJobDataMap().getString(key) + ",";
		}
		logger.error("excute TestJob " + jobKey + "data (" + data + ")");

	}
}
