package com.ssj.quartz.service;

import java.util.List;

import org.quartz.JobDataMap;
import org.quartz.JobDetail;
import org.quartz.JobKey;
import org.quartz.Trigger;

import com.ssj.quartz.domian.JobEntity;

public interface JobEntityService {
	//通过Id获取Job
	 public JobEntity getJobEntityById(Integer id);
	//从数据库中加载获取到所有Job
	 public List<JobEntity> loadJobs();
	//获取JobDataMap.(Job参数对象)
	 public JobDataMap getJobDataMap(JobEntity job) ;
	  //获取JobDetail,JobDetail是任务的定义,而Job是任务的执行逻辑,JobDetail里会引用一个Job Class来定义
	 public JobDetail geJobDetail(JobKey jobKey, String description, JobDataMap map) throws ClassNotFoundException;
	//获取Trigger (Job的触发器,执行规则)
	 public Trigger getTrigger(JobEntity job);
	 //获取JobKey,包含Name和Group
	 public JobKey getJobKey(JobEntity job) ;
	 
}
