commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.sys.modular.timer.service; |
|
26 |
|
|
27 |
import com.baomidou.mybatisplus.extension.service.IService; |
|
28 |
import vip.xiaonuo.core.pojo.page.PageResult; |
|
29 |
import vip.xiaonuo.sys.modular.timer.entity.SysTimers; |
|
30 |
import vip.xiaonuo.sys.modular.timer.param.SysTimersParam; |
|
31 |
|
|
32 |
import java.util.List; |
|
33 |
|
|
34 |
/** |
|
35 |
* 定时任务 服务类 |
|
36 |
* |
|
37 |
* @author yubaoshan |
|
38 |
* @date 2020/6/30 18:26 |
|
39 |
*/ |
|
40 |
public interface SysTimersService extends IService<SysTimers> { |
|
41 |
|
|
42 |
/** |
|
43 |
* 分页查询定时任务 |
|
44 |
* |
|
45 |
* @param sysTimersParam 查询参数 |
|
46 |
* @return 查询分页结果 |
|
47 |
* @author yubaoshan |
|
48 |
* @date 2020/6/30 18:26 |
|
49 |
*/ |
|
50 |
PageResult<SysTimers> page(SysTimersParam sysTimersParam); |
|
51 |
|
|
52 |
/** |
|
53 |
* 查询所有定时任务 |
|
54 |
* |
|
55 |
* @param sysTimersParam 查询参数 |
|
56 |
* @return 定时任务列表 |
|
57 |
* @author yubaoshan |
|
58 |
* @date 2020/6/30 18:26 |
|
59 |
*/ |
|
60 |
List<SysTimers> list(SysTimersParam sysTimersParam); |
|
61 |
|
|
62 |
/** |
|
63 |
* 添加定时任务 |
|
64 |
* |
|
65 |
* @param sysTimersParam 添加参数 |
|
66 |
* @author yubaoshan |
|
67 |
* @date 2020/6/30 18:26 |
|
68 |
*/ |
|
69 |
void add(SysTimersParam sysTimersParam); |
|
70 |
|
|
71 |
/** |
|
72 |
* 删除定时任务 |
|
73 |
* |
|
74 |
* @param sysTimersParam 删除参数 |
|
75 |
* @author yubaoshan |
|
76 |
* @date 2020/6/30 18:26 |
|
77 |
*/ |
|
78 |
void delete(SysTimersParam sysTimersParam); |
|
79 |
|
|
80 |
/** |
|
81 |
* 编辑定时任务 |
|
82 |
* |
|
83 |
* @param sysTimersParam 编辑参数 |
|
84 |
* @author yubaoshan |
|
85 |
* @date 2020/6/30 18:26 |
|
86 |
*/ |
|
87 |
void edit(SysTimersParam sysTimersParam); |
|
88 |
|
|
89 |
/** |
|
90 |
* 查看详情定时任务 |
|
91 |
* |
|
92 |
* @param sysTimersParam 查看参数 |
|
93 |
* @return 定时任务 |
|
94 |
* @author yubaoshan |
|
95 |
* @date 2020/6/30 18:26 |
|
96 |
*/ |
|
97 |
SysTimers detail(SysTimersParam sysTimersParam); |
|
98 |
|
|
99 |
/** |
|
100 |
* 启动任务 |
|
101 |
* |
|
102 |
* @param sysTimersParam 启动参数 |
|
103 |
* @author yubaoshan |
|
104 |
* @date 2020/7/1 14:36 |
|
105 |
*/ |
|
106 |
void start(SysTimersParam sysTimersParam); |
|
107 |
|
|
108 |
/** |
|
109 |
* 停止任务 |
|
110 |
* |
|
111 |
* @param sysTimersParam 停止参数 |
|
112 |
* @author yubaoshan |
|
113 |
* @date 2020/7/1 14:36 |
|
114 |
*/ |
|
115 |
void stop(SysTimersParam sysTimersParam); |
|
116 |
|
|
117 |
/** |
|
118 |
* 获取所有可执行的任务列表 |
|
119 |
* |
|
120 |
* @return TimerTaskRunner的所有子类名称集合 |
|
121 |
* @author yubaoshan |
|
122 |
* @date 2020/7/1 14:36 |
|
123 |
*/ |
|
124 |
List<String> getActionClasses(); |
|
125 |
|
|
126 |
} |