JobService.java
702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.bootdo.common.service;
import com.bootdo.common.domain.TaskDO;
import java.util.List;
import java.util.Map;
import org.quartz.SchedulerException;
/**
*
*
* @author chglee
* @email 1992lcg@163.com
* @date 2017-09-26 20:53:48
*/
public interface JobService {
TaskDO get(Long id);
List<TaskDO> list(Map<String, Object> map);
int count(Map<String, Object> map);
int save(TaskDO taskScheduleJob);
int update(TaskDO taskScheduleJob);
int remove(Long id);
int batchRemove(Long[] ids);
void initSchedule() throws SchedulerException;
void changeStatus(Long jobId, String cmd) throws SchedulerException;
void updateCron(Long jobId) throws SchedulerException;
}