You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2011/11/26 11:17:39 UTC

[jira] [Created] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Add Route start/stop/suspend/resume callback to RoutePolicy
-----------------------------------------------------------

                 Key: CAMEL-4715
                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
            Priority: Minor


We have onInit, and onRemove callbacks on RoutePolicy.

We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.

This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] [Resolved] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

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

Claus Ibsen resolved CAMEL-4715.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0

Thanks for the patch. I fixed another test which was affected by the change in DefaultCamelContext.
                
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] [Updated] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Posted by "Bilgin Ibryam (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam updated CAMEL-4715:
---------------------------------

    Patch Info: Patch Available
    
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>         Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] [Updated] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Posted by "Bilgin Ibryam (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam updated CAMEL-4715:
---------------------------------

    Attachment: routePolicy.diff

While testing suspendRoute/resumeRoute callback, I noticed that resumeRoute is not called, because the route is first started and then not resumed.
I did a fix for it in DefaultCamelContext and cannot see any side effects, but a second look would be good.
                
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>         Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] [Issue Comment Edited] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Posted by "Babak Vahdat (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161573#comment-13161573 ] 

Babak Vahdat edited comment on CAMEL-4715 at 12/2/11 12:33 PM:
---------------------------------------------------------------

As my comment doesn't get accepted on the mailing list, I put the link here:

http://camel.465427.n5.nabble.com/svn-commit-r1209404-in-camel-trunk-camel-core-src-main-java-org-apache-camel-impl-main-java-org-apac-tp5041426p5041639.html
                
      was (Author: bvahdat):
    As my comment doesn't get accepted on the mailing list, I put the link here:

                  
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] [Assigned] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Posted by "Bilgin Ibryam (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam reassigned CAMEL-4715:
------------------------------------

    Assignee: Bilgin Ibryam
    
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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] (CAMEL-4715) Add Route start/stop/suspend/resume callback to RoutePolicy

Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161573#comment-13161573 ] 

Babak Vahdat commented on CAMEL-4715:
-------------------------------------

As my comment doesn't get accepted on the mailing list, I put the link here:

                
> Add Route start/stop/suspend/resume callback to RoutePolicy
> -----------------------------------------------------------
>
>                 Key: CAMEL-4715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4715
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: routePolicy.diff
>
>
> We have onInit, and onRemove callbacks on RoutePolicy.
> We should consider having the fine grained callbacks for start|stop|suspend|resume, so end users have callbacks, and can do any custom code they may need to react accordingly to the changed state of the route.
> This requires API changes in the RoutePolicy API, so we should not backport this.

--
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