提交 | 用户 | 时间
|
e7c126
|
1 |
package com.xxl.job.admin.service; |
H |
2 |
|
|
3 |
|
|
4 |
import com.xxl.job.admin.core.model.XxlJobInfo; |
|
5 |
import com.xxl.job.admin.core.model.XxlJobUser; |
|
6 |
import com.xxl.job.core.biz.model.ReturnT; |
|
7 |
|
|
8 |
import java.util.Date; |
|
9 |
import java.util.Map; |
|
10 |
|
|
11 |
/** |
|
12 |
* core job action for xxl-job |
|
13 |
* |
|
14 |
* @author xuxueli 2016-5-28 15:30:33 |
|
15 |
*/ |
|
16 |
public interface XxlJobService { |
|
17 |
|
|
18 |
/** |
|
19 |
* page list |
|
20 |
* |
|
21 |
* @param start |
|
22 |
* @param length |
|
23 |
* @param jobGroup |
|
24 |
* @param jobDesc |
|
25 |
* @param executorHandler |
|
26 |
* @param author |
|
27 |
* @return |
|
28 |
*/ |
|
29 |
public Map<String, Object> pageList(int start, int length, int jobGroup, int triggerStatus, String jobDesc, String executorHandler, String author); |
|
30 |
|
|
31 |
/** |
|
32 |
* add job |
|
33 |
* |
|
34 |
* @param jobInfo |
|
35 |
* @return |
|
36 |
*/ |
|
37 |
public ReturnT<String> add(XxlJobInfo jobInfo); |
|
38 |
|
|
39 |
/** |
|
40 |
* update job |
|
41 |
* |
|
42 |
* @param jobInfo |
|
43 |
* @return |
|
44 |
*/ |
|
45 |
public ReturnT<String> update(XxlJobInfo jobInfo); |
|
46 |
|
|
47 |
/** |
|
48 |
* remove job |
|
49 |
* * |
|
50 |
* @param id |
|
51 |
* @return |
|
52 |
*/ |
|
53 |
public ReturnT<String> remove(int id); |
|
54 |
|
|
55 |
/** |
|
56 |
* start job |
|
57 |
* |
|
58 |
* @param id |
|
59 |
* @return |
|
60 |
*/ |
|
61 |
public ReturnT<String> start(int id); |
|
62 |
|
|
63 |
/** |
|
64 |
* stop job |
|
65 |
* |
|
66 |
* @param id |
|
67 |
* @return |
|
68 |
*/ |
|
69 |
public ReturnT<String> stop(int id); |
|
70 |
|
|
71 |
/** |
|
72 |
* trigger |
|
73 |
* |
|
74 |
* @param loginUser |
|
75 |
* @param jobId |
|
76 |
* @param executorParam |
|
77 |
* @param addressList |
|
78 |
* @return |
|
79 |
*/ |
|
80 |
public ReturnT<String> trigger(XxlJobUser loginUser, int jobId, String executorParam, String addressList); |
|
81 |
|
|
82 |
/** |
|
83 |
* dashboard info |
|
84 |
* |
|
85 |
* @return |
|
86 |
*/ |
|
87 |
public Map<String,Object> dashboardInfo(); |
|
88 |
|
|
89 |
/** |
|
90 |
* chart info |
|
91 |
* |
|
92 |
* @param startDate |
|
93 |
* @param endDate |
|
94 |
* @return |
|
95 |
*/ |
|
96 |
public ReturnT<Map<String,Object>> chartInfo(Date startDate, Date endDate); |
|
97 |
|
|
98 |
} |