• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which scheduler is suitable for the below requirement

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have the following requirement.

I have to start 3-4 schedulers between a start an end date and the timings for these schedulers are 9am, 1pm, 5pm, 10pm. And these start and end dates vary. For eg: I have to start 3 schedulers between 5th-10th Jan and another might be say 13th-17th Jan. So these dates might vary. But the timings on these dates are fixed as mentioned above. But only thing is I might have to schedule job at 9am and 1pm on day, and only at 10pm on another day and so on. So the number of times vary.

Can anyone please suggest which job and triggers I can use. Is it possible to have one scheduler for this?

Cheers
Preethi
 
preethi vs
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can Anyone please have a look at my post. Any help is appreciated
 
Ranch Hand
Posts: 36
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Preethi,

What OS are you using? Are you looking for any Java solution.

Try reading up on CRON for scheduling in Unix flavours.

If you are using windows , you can use Task Scheduler.

Thanks
Deepak
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out Quartz
 
preethi vs
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak Rao I am using windows. Yes I am looking for java solution, in fact Java schedulers.
Problem is I have to schedule jobs four times in a day and for each of these I have thousands of triggers might be running in the system.
Yes I have gone ahead with Cron only. But I am thinking about the scalability of the applications.
 
preethi vs
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I went through Quartz api.
Can you please tell me whether Quartz itself can handle this or I have to do external thread pooling for this.
If possible can you please share piece of code which does the configuration for thousands of triggers.
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Quartz can handle it for you. If you follow the link I provided, you will see a quick start guide under documentation

preethi vs wrote:...can you share piece of code


No can do, because the Ranch is NotACodeMill
Try it out and if you run into trouble, post your SSCCE code and we can help you figure out what's wrong.

PS. Also please check your private messages for an important administrative matter.
 
reply
    Bookmark Topic Watch Topic
  • New Topic