source: DCWoRMS/branches/coolemall/src/schedframe/events/scheduling/TaskCanceledEvent.java @ 1415

Revision 1415, 788 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.events.scheduling;
2
3import java.util.List;
4
5import schedframe.events.EventReason;
6
7
8public class TaskCanceledEvent extends SchedulingEvent {
9
10        protected String jobId;
11        protected String taskId;
12        protected List<String> epr;
13       
14        public TaskCanceledEvent(List<String> list){
15                super(SchedulingEventType.TASK_CANCELED);
16                this.epr = list;
17                this.jobId = null;
18                this.taskId = null;
19        }
20       
21        public TaskCanceledEvent(String jobId, String taskId) {
22                super(SchedulingEventType.TASK_CANCELED);
23                this.jobId = jobId;
24                this.taskId = taskId;
25        }
26       
27        public void setReason(EventReason reason){
28                this.reason = reason;
29        }
30
31        public String getJobId() {
32                return jobId;
33        }
34
35        public String getTaskId() {
36                return taskId;
37        }
38       
39        public List<String> getReservations(){
40                return this.epr;
41        }
42
43}
Note: See TracBrowser for help on using the repository browser.