Hey,

I pushed qi4j-lib-scheduler into sandox as it is not fully functionnal yet.

We already discussed the implementation a bit, this will be much easier with 
the code available to everybody.

The Scheduler interface is only about scheduling using cron expressions for 
now, ie. mostly repeating tasks, but it will be easy to add method like:

  Schedule scheduleOnce( Task task, Long initialDelay );
  Schedule scheduleOnce( Task task, Date date );

Where the implementation will generate the related cron expression.
I took this way as having several ways of scheduling (cron + delay + date) 
would have cluttered the code. IMO having only one way to express scheduling 
is simpler.

Since the previous discussion, I started an optionnal TimelineService to 
expose past Task runs with their "result" (success/failed+details) and future 
scheduled Task runs. This service could be used to expose scheduler state to 
JMX for example. It's not functionnal yet but success/failure are already 
recorded if the TimelineRecorderService is available.

I only had little time last week to work on it but I'll have more spare time 
this week.

Please, read the code and comments so we can get a nice scheduler for Qi4j 
applications.

/Paul

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to