Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice && crob jobs

xdm
xdm La Coruña, Spain
Hello guys

I interesting in a service of cron jobs via Ice
class MySubscriber extens IceCronSubscriber 
{
  virtual exec();
}


MySubscriber mySubscriber;
mySubscriber->dayly(true);
mySubscriber->monthly(true);

IceCron->subcribe(mySubscriber);

have Ice plans of do same thing similar to it?
thanks

Comments

  • No, we don't have any plans to implement this, but it should be pretty straightforward to write something like this yourself :)
  • The simpliest solution is:
    You might remove a potential waitForShutdown() in your application code but add a while() loop instead which invokes certain operations after certain periods of time.
    It gets a little bit more complicated when using Windows services: As there is no true main function for these type of applications, you can create a separate thread which then runs the while() loop.
    The last and probably heaviest variant would be to mimic the CORBA services for this task: Create a time service which uses IceStorm for transmitting it's timing signals and register your object to the corresponding event channel!

    regs,

    Stephan