You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Spico Florin <sp...@gmail.com> on 2012/01/17 16:30:50 UTC
Check if UimaAsynchronousEngine is running
Hello!
Is there any method to ask if the UimaAsynchronousEngine is still
running or is in the process of shutting down?
Thank you.
Regards,
Florin
Re: Check if UimaAsynchronousEngine is running
Posted by Vinod <vk...@hotmail.com>.
One way to check is to see what processes are running.
Re: Check if UimaAsynchronousEngine is running
Posted by Spico Florin <sp...@gmail.com>.
Hello!
Thank you for your helpful answers. I was using Jerry's approach : when
the client is stopping via the stop() method before this call of the method
I'm setting up a volatile boolean field that marks that the UIMAEngine is
stopping. Then, in a different part of my code where the engine is also
involved in the sending process, I'm checking up this
boolean field.
Kind regards,
Florin
On Wed, Jan 18, 2012 at 8:27 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> Sorry, the state of the UimaAsynchronousEngine is currently not exposed. It
> probably should be via isStopping() and/or isRunning() or something
> similar, and even isStopped(). Presumably though, since your
> application calls (?) stop() on the UimaAsynchronousEngine you know that at
> least it is stopping. Also, adding support for registering user defined
> callbacks on UimaAsynchronousEngine lifecycle events be of interest as
> well.
>
> Jerry
>
>
> On Tue, Jan 17, 2012 at 10:30 AM, Spico Florin <spicoflorin@gmail.com
> >wrote:
>
> > Hello!
> > Is there any method to ask if the UimaAsynchronousEngine is still
> > running or is in the process of shutting down?
> >
> > Thank you.
> > Regards,
> > Florin
> >
>
Re: Check if UimaAsynchronousEngine is running
Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Sorry, the state of the UimaAsynchronousEngine is currently not exposed. It
probably should be via isStopping() and/or isRunning() or something
similar, and even isStopped(). Presumably though, since your
application calls (?) stop() on the UimaAsynchronousEngine you know that at
least it is stopping. Also, adding support for registering user defined
callbacks on UimaAsynchronousEngine lifecycle events be of interest as
well.
Jerry
On Tue, Jan 17, 2012 at 10:30 AM, Spico Florin <sp...@gmail.com>wrote:
> Hello!
> Is there any method to ask if the UimaAsynchronousEngine is still
> running or is in the process of shutting down?
>
> Thank you.
> Regards,
> Florin
>