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 <[email protected]> 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 <[email protected] > >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 > > >
