Manual Refresh of Cached Map

934 views
Skip to first unread message

Anirvan Majumdar

unread,
Jul 8, 2013, 11:23:52 AM7/8/13
to haze...@googlegroups.com
Hello,

I had recently set up a 4 node distributed cache using HZ, and it's been working flawlessly. I also got myself a trial license to monitor the caches through mancenter. So far, the experience has been really good, and the data and actions available through mancenter makes it really simple to understand the performance of the cache.

Recently, I encountered a situation whereby I wanted to refresh the data in one of the distributed maps without having to restart the nodes. I accessed the map through the mancenter and clicked on the "Configuration" button. However, I couldn't find an option to clear the map data in the dialog.


I was wondering whether there's any way to do this without having to restart all the nodes?

Thanks,
--------
Anirban

Enes Akar

unread,
Jul 9, 2013, 5:37:09 AM7/9/13
to haze...@googlegroups.com
You can send following script to one of the nodes:

var map = hazelcast.getMap('customers');
map.clear();
        
See here for more about scripting part:
http://www.hazelcast.com/docs/latest/manual/single_html/#MC_Scripting


--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Enes Akar
Hazelcast | Open source in-memory data grid
Mobile: +90.505.394.1668
PastedGraphic-1.png
Reply all
Reply to author
Forward
0 new messages