You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andreas Kuhtz (JIRA)" <ji...@apache.org> on 2012/10/08 17:18:02 UTC

[jira] [Created] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

Andreas Kuhtz created CAMEL-5692:
------------------------------------

             Summary: Allow to create customized AggregateProcessor in AggregateDefinition
                 Key: CAMEL-5692
                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.10.1, 2.11.0
            Reporter: Andreas Kuhtz
         Attachments: CAMEL-5692.patch

Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Raul Kripalani commented on CAMEL-5692:
---------------------------------------

Doesn't the {{completionPredicate}} on the aggregate EIP work for you? Take a look at [1].
It allows you to define an arbitrary condition to signal that the batch is complete.

Take a look at the unit tests here [2] if you need more examples than the website shows. 

[1] http://camel.apache.org/aggregator2.html#Aggregator2-UsingcompletionPredicate
[2] https://fisheye6.atlassian.com/browse/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator.
                
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Andreas Kuhtz updated CAMEL-5692:
---------------------------------

    Attachment: CAMEL-5692.patch
    
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Andreas Kuhtz commented on CAMEL-5692:
--------------------------------------

This would allow me to overwrite the AggregateProcessor and use the overwritten AggregateDefintion to prepare the aggregator. 
I've the case where some events must be aggregated (some events stored in a list and some combined by incrementing the counter) until a "commit finished" event is received. When the aggregation is completed (by the "commit finished" event) the events stored in a list must be published.
Another thing is that the AggregateProcessor.onSubmitCompletion() is private I cannot simply overwrite it to send all messages in the aggregationRepository.

Maybe I miss something and there is a better solution for this (... and I should have asked that on the mailing list, sorry).
                
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Claus Ibsen commented on CAMEL-5692:
------------------------------------

Yeah we dont encourage end users to extend the xxxDefinition classes and do their own workaround on the out of the box EIPs.
We want to end users to use the public API that the EIPs offers and is documented on their web page.

And yes ask on mailing list first as we say here
http://camel.apache.org/support
                
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Claus Ibsen resolved CAMEL-5692.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.11.0
         Assignee: Claus Ibsen
    
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>            Assignee: Claus Ibsen
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5692) Allow to create customized AggregateProcessor in AggregateDefinition

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

Claus Ibsen commented on CAMEL-5692:
------------------------------------

And what do you need this for?
                
> Allow to create customized AggregateProcessor in AggregateDefinition
> --------------------------------------------------------------------
>
>                 Key: CAMEL-5692
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5692
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.1, 2.11.0
>            Reporter: Andreas Kuhtz
>         Attachments: CAMEL-5692.patch
>
>
> Allow to create customized AggregateProcessor in AggregateDefinition by adding an overrideable method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira