ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: How can I be sure grid is actualy stopped?
Date Thu, 08 Oct 2015 05:48:59 GMT
Hi Alexey,

Alexey V. Ryazanov wrote
> I stop grid by
> G.stop("myGridName", false);
> It seems to me it takes some time to stop. Can I be notified somehow when
> grid has actually been stopped? Cause now I have to use 
> Thread.sleep()
>  in order to take a time before I can start grid again.

First of all, you should use Ignition.stop(..) instead of G.stop(..),
because the latter is not part of the public API.

Anyway, stop method is synchronous, so when it's finished, you should be
able to start Ignite again. Does it behave differently for you? When happens
when you try to restart?


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-can-I-be-sure-grid-is-actualy-stopped-tp1571p1572.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message