views:

117

answers:

1

Hello,

Is there an API to determine the last execution time of a quartz job.

Thanks, Sandhya

+1  A: 

Strictly speaking, a Job doesn't have a fire time, a Trigger does. And Trigger has getPreviousFireTime(). See http://www.quartz-scheduler.org/docs/api/org/quartz/Trigger.html#getPreviousFireTime%28%29

If your Job has multiple triggers, you can retrieve them all and examine their fire times. See the cookbook examples at http://www.quartz-scheduler.org/docs/cookbook/index.html

Dennis S.
Thank you..that helped !