JobExtInfo.java
1.39 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.github.ltsopensource.tasktracker.runner;
import com.github.ltsopensource.core.domain.JobType;
/**
* @author Robert HG (254963746@qq.com) on 4/2/16.
*/
public class JobExtInfo {
// 已经重试的次数 (用户不要设置)
private int retryTimes = 0;
/**
* 已经重复的次数, (用户不要设置)
*/
private int repeatedCount = 0;
/**
* 是否是重试
*/
private boolean retry;
/**
* 任务类型
*/
private JobType jobType;
/**
* 执行的时序 (每个执行周期都不一样,但是修复死任务,重试等不会改变)
*/
private String seqId;
public boolean isRetry() {
return retry;
}
public void setRetry(boolean retry) {
this.retry = retry;
}
public int getRetryTimes() {
return retryTimes;
}
public void setRetryTimes(int retryTimes) {
this.retryTimes = retryTimes;
}
public int getRepeatedCount() {
return repeatedCount;
}
public void setRepeatedCount(int repeatedCount) {
this.repeatedCount = repeatedCount;
}
public JobType getJobType() {
return jobType;
}
public void setJobType(JobType jobType) {
this.jobType = jobType;
}
public String getSeqId() {
return seqId;
}
public void setSeqId(String seqId) {
this.seqId = seqId;
}
}