Hi ,
I need to know when the job completes (like a Boolean value).
Is there any in-build method I can use in the Quartz API for the notification of job completion.
I trying to generate files using cron scheduler . After it gets completed it needs to be copied to another location .
So basically if I get to knw when my job completes , i can start copying the files from then on.
Any suggestion/ideas would be greatly helpful .
You can implement the JobListener. JobListener interface is clear with call back methods like before your job is executed (jobToBeExecuted), and after job is executed (jobWasExecuted).
Please read below doc for more details.
Hi Gyan,
Thanks you !
Yes I hav tried that . Even then the Listeners are specific to single Job .
My requirement is like , the trigger should fire after two cron jobs complete. Is there any way that the Listeners can be implemented for two cron jobs ?