JobClientOperatorService.java
1022 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
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.yoho.quartz.job;
import com.yoho.quartz.domain.JobDetail;
import com.yoho.quartz.exception.JobException;
/**
* Author:yanzhang.fu
* Date:2018/2/26
* Description:
* Modified By:
**/
public interface JobClientOperatorService {
/**
* 任务入库
*
* @param jobDetail
*/
void createJob(JobDetail jobDetail , String channel) throws JobException;
/**
* 修改job
*
* @param jobDetail
* @throws JobException
*/
void updateJob(JobDetail jobDetail) throws JobException;
/**
* 暂停Job
*
* @param jobDetail
* @throws JobException
*/
void pauseJob(JobDetail jobDetail) throws JobException;
/**
* 启动任务
*
* @param jobDetail
* @throws JobException
*/
void startJob(JobDetail jobDetail) throws JobException;
/**
* 删除任务,为软删除
* @param jobDetail
* @throws JobException
*/
void deleteJob(JobDetail jobDetail) throws JobException;
}