david-PC\david
2018-06-12 cc7f57619fd09f68582b748a3580402717b84c50
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
package frame.schedule;
 
import java.util.Date;
 
import org.quartz.JobKey;
import org.quartz.TriggerKey;
 
public interface IJob {
 
    static String Key_Job = "Job";
    static String Key_Config = "Config";
    
    static int Max_TryTimes = 3;
    static int Max_TryCycles = 2;
    static int Minutes_IntervalCycle = 10;
    
    String getId();
    
    String getName();
    
    void begin(String taskId, Date beginTime);
    
    void succeed(String taskId, int tryTimes, int tryCycles, Date endTime);
    
    void fail(String taskId, int tryTimes, int tryCycles, Date endTime);
 
    void execute() throws Exception;
 
    String getRunTime();
 
    JobKey getJobKey();
    
    TriggerKey getTriggerKey();
 
    JobStatus getStatus();
    
}