You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "aaron@tophold.com" <aa...@tophold.com> on 2017/09/06 07:26:07 UTC
How to control the quit of Ignite instance manually?
hi All,
We want to the control the quit of the Ignite instance, so we can do some purger and housekeeping job before ignite shutdown.
But seem Ignite add hook to the JVM runtime; so we can always get BEFORE_NODE_STOP before our cleaning up job kick.
Is there anyway we can control exactly time when ignite should quit?
Thanks again for your time!
Regards
Aaron
aaron@tophold.com
Re: How to control the quit of Ignite instance manually?
Posted by Denis Mekhanikov <dm...@gmail.com>.
As per documentation
<https://apacheignite.readme.io/docs/ignite-life-cycle#lifecycle-event-types>,
you can implement a LifecycleBean and specify it in IgniteConfiguration.
You can process BEFORE_NODE_STOP or AFTER_NODE_STOP in this implementation.
- Denis
ср, 6 сент. 2017 г. в 10:26, aaron@tophold.com <aa...@tophold.com>:
> hi All,
>
> We want to the control the quit of the Ignite instance, so we can do some
> purger and housekeeping job before ignite shutdown.
>
> But seem Ignite add hook to the JVM runtime; so we can always get
> BEFORE_NODE_STOP before our cleaning up job kick.
>
> Is there anyway we can control exactly time when ignite should quit?
>
> Thanks again for your time!
>
> Regards
> Aaron
> ------------------------------
> aaron@tophold.com
>