Hello Everyone,

I would like to achieve the following system: a main thread creates
and initializes an Ignite data grid. Multiple child threads are
created and each have to access the grid created on the main thread.
In order to achieve this I thought of the following:
- An ignite grid is created on the main thread with parametrized cache
configurations
- The child threads initialize the same cache grid configurations but
in client mode (setClientMode(true)).

My questions are:

1/ Is this the right way of achieving the desired behaviour using
Ignite?
2/ The child thread might be stopped without going though a cleanup
method. Doing this will leave the client grid running and the process
won't terminate. Is there a way to close the grid started on the child
threads from the main thread, or a way to systematically close all the
running grids?

Thank you and best regards,

Tran Nam-Luc


Reply via email to