com.xxl.job.admin.service.XxlJobService Maven / Gradle / Ivy
package com.xxl.job.admin.service;
import com.xxl.job.admin.core.model.XxlJobGroup;
import com.xxl.job.admin.core.model.XxlJobInfo;
import com.xxl.job.core.biz.model.ReturnT;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* core job action for xxl-job
*
* @author xuxueli 2016-5-28 15:30:33
*/
public interface XxlJobService {
/**
* page list
*
* @param start
* @param length
* @param jobGroup
* @param jobDesc
* @param executorHandler
* @param filterTime
* @return
*/
public Map pageList(int start, int length, int jobGroup, String jobDesc, String executorHandler, String filterTime);
/**
* add job, default quartz stop
*
* @param jobInfo
* @return
*/
public ReturnT add(XxlJobInfo jobInfo);
/**
* update job, update quartz-cron if started
*
* @param jobInfo
* @return
*/
public ReturnT update(XxlJobInfo jobInfo);
/**
* remove job, unbind quartz
*
* @param id
* @return
*/
public ReturnT remove(int id);
/**
* start job, bind quartz
*
* @param id
* @return
*/
public ReturnT start(int id);
/**
* stop job, unbind quartz
*
* @param id
* @return
*/
public ReturnT stop(int id);
/**
* dashboard info
*
* @return
*/
public Map dashboardInfo();
/**
* chart info
*
* @param startDate
* @param endDate
* @return
*/
public ReturnT