karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zaerymoghaddam <zaerymoghad...@gmail.com>
Subject Re: Having commands for scheduler module
Date Tue, 14 Jan 2014 10:50:56 GMT

imho we have two option:

    1. Extend the scheduler service and its related commands
        using classes in java.util.concurrent package, we can provide more
advanced scheduling capabilities like dynamically
adding/removing/suspending/resuming scheduled tasks. It can have commands
and options like these:

        lists already scheduled tasks

        schedules given task base on delay or repeating parameters

        removes given scheduled task from the list
        suspends given task 

        resumes an already suspended task

    2. Define a new Karaf Feature to have Quartz scheduler in Karaf
        Currently there is an OSGi wrapper for Quartz in Apache ServiceMix
(org.apache.servicemix.bundles.quartz) that may be useful to provide
advanced scheduling capabilities.

I think both options have their own pros and cons. The first option would be
enough for most basic situations and no additional dependencies will be
added to the project. The second one is a must have for any enterprise level
project due to large number of options and features provided by Quartz. So a
Karaf Feature to install Quartz bundles into container (like Spring Feature)
could be devised in near future.


View this message in context: http://karaf.922171.n3.nabble.com/Having-commands-for-scheduler-module-tp4030991p4031001.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

View raw message