Cache rebalance state

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cache rebalance state

Alexey Kuznetsov-2
Hi!

It is possible to collect cache rebalancing state?
In node log I see messages about rebalancing started / in progress /
completed.
So node knows cache rebalancing state.
How I could access this state? I link to class / method will be enough for
me.

Thanks.
--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Cache rebalance state

Alexey Kuznetsov-2
Hi!

I investigated code a little and found that GridDhtPreloader class is
printing rebalance state messages.

So, I'm thinking to add a volatile boolean variable "preloading" to that
class that will be updated on rebalance start/stop.
And this variable will be available via getter.

And in GridDhtCacheAdapter class we already have access to preloader.
This will be enough for me.

Thoughts?

If proposed modifications is OK I will create an issue and provide a patch.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com