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