Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a Listener in Quartz Job Schedular

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a Job for Quartz Scheduler, which is in turn reading from a queue and writing into file system.

Now we have a restriction that we should keep writing until queue message count reaches 5000 or 2hrs have been passed.

For queue message count I could do this restriction in that job class itself, but how could I manage time restriction from Scheduler. I know, I can handle this restriction in actual queue reading class. But just for sake of maintainability we want to control it through Quartz Scheduler.

Any help would be appreciated.

Thanks
Ankur
 
Rob Spoor
Sheriff
Pie
Posts: 20531
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll have a bit more success in the Other Open Source Projects forum.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankur,

Have you thought about having a 2nd schedule job which stops the first (after 2 hours)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic