You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Ioannis Canellos (JIRA)" <ji...@apache.org> on 2011/07/16 22:22:00 UTC

[jira] [Created] (KARAF-739) Provide a way to handle recurring tasks in celllar

Provide a way to handle recurring tasks in celllar
--------------------------------------------------

                 Key: KARAF-739
                 URL: https://issues.apache.org/jira/browse/KARAF-739
             Project: Karaf
          Issue Type: New Feature
          Components: cellar-core
    Affects Versions: cellar-2.2.1, cellar-3.0.0
            Reporter: Ioannis Canellos
            Assignee: Ioannis Canellos
            Priority: Minor


There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.

What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070303#comment-13070303 ] 

Andreas Pieber commented on KARAF-739:
--------------------------------------

I think the work should be the same independent where we place it, but it sounds quite useful to be reused somewhere else too. I just though about this because there is no "timer-namespace" replacement for Springs timer support in blueprint. So we may provide our own with Karaf (with the additional plus of being fully  integrated into the karaf shell)

> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066591#comment-13066591 ] 

Andreas Pieber commented on KARAF-739:
--------------------------------------

I think this could also be quite useful outside from celler. Maybe we could provide such functionality in a small util-bundle. That way such  things could be used without cellar (and even withouth Karaf; I'm not sure that we have to integrate this lib deeply). WDYT?

> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Ioannis Canellos (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ioannis Canellos resolved KARAF-739.
------------------------------------

    Resolution: Won't Fix

Since we pushed part of this functionality to Karaf trunk, we don't have to do it in Cellar too.
                
> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066895#comment-13066895 ] 

Ioannis Canellos commented on KARAF-739:
----------------------------------------

I agree with that. We could also build some shell commands around it (listing recurring services/period, canceling & rescheduling). 

> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073162#comment-13073162 ] 

Glen Mazza commented on KARAF-739:
----------------------------------

Karaf can perhaps rely on cron expressions to designate frequency:
http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html
http://en.wikipedia.org/wiki/Cron#CRON_expression


> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066897#comment-13066897 ] 

Jean-Baptiste Onofré commented on KARAF-739:
--------------------------------------------

As reminder, the requirement comes from the handling of network failure between Cellar nodes.

But Andreas is right, it could be interesting to have it in Karaf core.

> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-739) Provide a way to handle recurring tasks in celllar

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073163#comment-13073163 ] 

Jean-Baptiste Onofré commented on KARAF-739:
--------------------------------------------

Yeah it's what I suggest on the mailing list.

By using Quartz (with the different kind of trigger and JobDataMap), I think that we cover a large part of our requirements.

> Provide a way to handle recurring tasks in celllar
> --------------------------------------------------
>
>                 Key: KARAF-739
>                 URL: https://issues.apache.org/jira/browse/KARAF-739
>             Project: Karaf
>          Issue Type: New Feature
>          Components: cellar-core
>    Affects Versions: cellar-3.0.0, cellar-2.2.1
>            Reporter: Ioannis Canellos
>            Assignee: Ioannis Canellos
>            Priority: Minor
>
> There are many cases that cellar requires the implementation of task that will be executed repeaditly (something like Timer/TimerTask). Especially tasks that are related to node discovery, ping etc.
> What I imagine is an interface that describes the delay/period of the task and a service listener that wraps the service implementation in TimerTask.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira