|
|
@ -14,22 +14,81 @@ import java.util.Map;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public interface XxlJobService {
|
|
|
|
public interface XxlJobService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* page list
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param start
|
|
|
|
|
|
|
|
* @param length
|
|
|
|
|
|
|
|
* @param jobGroup
|
|
|
|
|
|
|
|
* @param jobDesc
|
|
|
|
|
|
|
|
* @param executorHandler
|
|
|
|
|
|
|
|
* @param filterTime
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Map<String, Object> pageList(int start, int length, int jobGroup, String jobDesc, String executorHandler, String filterTime);
|
|
|
|
public Map<String, Object> pageList(int start, int length, int jobGroup, String jobDesc, String executorHandler, String filterTime);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* add job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param jobInfo
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ReturnT<String> add(XxlJobInfo jobInfo);
|
|
|
|
public ReturnT<String> add(XxlJobInfo jobInfo);
|
|
|
|
|
|
|
|
|
|
|
|
public ReturnT<String> reschedule(XxlJobInfo jobInfo);
|
|
|
|
/**
|
|
|
|
|
|
|
|
* update job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param jobInfo
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ReturnT<String> update(XxlJobInfo jobInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* remove job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ReturnT<String> remove(int id);
|
|
|
|
public ReturnT<String> remove(int id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* pause job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ReturnT<String> pause(int id);
|
|
|
|
public ReturnT<String> pause(int id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* resume job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ReturnT<String> resume(int id);
|
|
|
|
public ReturnT<String> resume(int id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* trigger job
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ReturnT<String> triggerJob(int id);
|
|
|
|
public ReturnT<String> triggerJob(int id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* dashboard info
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Map<String,Object> dashboardInfo();
|
|
|
|
public Map<String,Object> dashboardInfo();
|
|
|
|
|
|
|
|
|
|
|
|
public ReturnT<Map<String,Object>> triggerChartDate(Date startDate, Date endDate);
|
|
|
|
/**
|
|
|
|
|
|
|
|
* chart info
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param startDate
|
|
|
|
|
|
|
|
* @param endDate
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ReturnT<Map<String,Object>> chartInfo(Date startDate, Date endDate);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|