You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by "n7100@t-online.de" <n7...@t-online.de> on 2018/01/18 12:54:55 UTC

Completion event for replicated components

Hi,
 
in chapter 1.5.2 in UIMA AS documentation 
https://uima.apache.org/d/uima-as-2.9.0/uima_async_scaleout.html#ugr.async.ov.concepts.collection_process_complete
its stated that only one instance will receive the 
collectionProcessComplete call, if components are replicated.

What is the best way to get collectionProcessComplete() or something else 
called in the replicated consumer components, when the collection is 
finished, in order to complete writing any output?
 
Thanks and best regards,
John
 


<div style=\"border:0;border-bottom:1px solid black;width:100%;\"> 
Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos 
und sicher für alle!

Re: Completion event for replicated components

Posted by Eddie Epstein <ea...@gmail.com>.
There will be a new mechanism to help do this in the upcoming
uima-as-2.10.2 version. This version includes an additional listener on
every service that can be addressed individually. A uima-as client could
then iterate thru all service instances calling CPC, assuming the client
knew about all existing instances.

This does not solve the problem for replicated components in the same
service instance. For that the thread receiving the CPC would have to use
generic methods to trigger CPC processing in all the other threads.

Eddie

On Thu, Jan 18, 2018 at 7:54 AM, n7100@t-online.de <n7...@t-online.de>
wrote:

> Hi,
>
> in chapter 1.5.2 in UIMA AS documentation
> https://uima.apache.org/d/uima-as-2.9.0/uima_async_
> scaleout.html#ugr.async.ov.concepts.collection_process_complete
> its stated that only one instance will receive the
> collectionProcessComplete call, if components are replicated.
>
> What is the best way to get collectionProcessComplete() or something else
> called in the replicated consumer components, when the collection is
> finished, in order to complete writing any output?
>
> Thanks and best regards,
> John
>
> 
>
> <div style=\"border:0;border-bottom:1px solid black;width:100%;\">
> Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> -
> kostenlos
> und sicher für alle!