1 17 18 21 package org.quartz.spi; 22 23 import java.util.Date ; 24 25 import org.quartz.Calendar; 26 import org.quartz.JobDetail; 27 import org.quartz.Trigger; 28 29 39 public class TriggerFiredBundle implements java.io.Serializable { 40 41 48 49 private JobDetail job; 50 51 private Trigger trigger; 52 53 private Calendar cal; 54 55 private boolean jobIsRecovering; 56 57 private Date fireTime; 58 59 private Date scheduledFireTime; 60 61 private Date prevFireTime; 62 63 private Date nextFireTime; 64 65 72 73 public TriggerFiredBundle(JobDetail job, Trigger trigger, Calendar cal, 74 boolean jobIsRecovering, Date fireTime, Date scheduledFireTime, 75 Date prevFireTime, Date nextFireTime) { 76 this.job = job; 77 this.trigger = trigger; 78 this.cal = cal; 79 this.jobIsRecovering = jobIsRecovering; 80 this.fireTime = fireTime; 81 this.scheduledFireTime = scheduledFireTime; 82 this.prevFireTime = prevFireTime; 83 this.nextFireTime = nextFireTime; 84 } 85 86 93 94 public JobDetail getJobDetail() { 95 return job; 96 } 97 98 public Trigger getTrigger() { 99 return trigger; 100 } 101 102 public Calendar getCalendar() { 103 return cal; 104 } 105 106 public boolean isRecovering() { 107 return jobIsRecovering; 108 } 109 110 113 public Date getFireTime() { 114 return fireTime; 115 } 116 117 120 public Date getNextFireTime() { 121 return nextFireTime; 122 } 123 124 127 public Date getPrevFireTime() { 128 return prevFireTime; 129 } 130 131 134 public Date getScheduledFireTime() { 135 return scheduledFireTime; 136 } 137 138 } | Popular Tags |