提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.module.job.service; |
|
10 |
|
|
11 |
import com.iailab.framework.common.page.PageData; |
|
12 |
import com.iailab.framework.common.service.BaseService; |
|
13 |
import com.iailab.module.job.dto.ScheduleJobDTO; |
|
14 |
import com.iailab.module.job.entity.ScheduleJobEntity; |
|
15 |
|
|
16 |
import java.util.Map; |
|
17 |
|
|
18 |
/** |
|
19 |
* 定时任务 |
|
20 |
* |
|
21 |
* @author Mark sunlightcs@gmail.com |
|
22 |
*/ |
|
23 |
public interface ScheduleJobService extends BaseService<ScheduleJobEntity> { |
|
24 |
|
|
25 |
PageData<ScheduleJobDTO> page(Map<String, Object> params); |
|
26 |
|
|
27 |
ScheduleJobDTO get(Long id); |
|
28 |
|
|
29 |
/** |
|
30 |
* 保存定时任务 |
|
31 |
*/ |
|
32 |
void save(ScheduleJobDTO dto); |
|
33 |
|
|
34 |
/** |
|
35 |
* 更新定时任务 |
|
36 |
*/ |
|
37 |
void update(ScheduleJobDTO dto); |
|
38 |
|
|
39 |
/** |
|
40 |
* 批量删除定时任务 |
|
41 |
*/ |
|
42 |
void deleteBatch(Long[] ids); |
|
43 |
|
|
44 |
/** |
|
45 |
* 批量更新定时任务状态 |
|
46 |
*/ |
|
47 |
int updateBatch(Long[] ids, int status); |
|
48 |
|
|
49 |
/** |
|
50 |
* 立即执行 |
|
51 |
*/ |
|
52 |
void run(Long[] ids); |
|
53 |
|
|
54 |
/** |
|
55 |
* 暂停运行 |
|
56 |
*/ |
|
57 |
void pause(Long[] ids); |
|
58 |
|
|
59 |
/** |
|
60 |
* 恢复运行 |
|
61 |
*/ |
|
62 |
void resume(Long[] ids); |
|
63 |
} |