-
1. Re: How to get all the cache names in an Infinispan cache clusture
galder.zamarreno Dec 6, 2011 4:34 AM (in response to agrawal24_7)Hmm, I assume this is a copy of http://stackoverflow.com/questions/8370663/how-to-get-all-the-cache-names-in-an-infinispan-cache-clusture ?
Here's my response:
Hmmm, normally you'll have all caches defined cluster wide, so getting the cache names in a node is good enough to know the caches that are available cluster wide.
This doesn't seem to be your case though, so the easiest thing I can think of is to do a Map/Reduce functionality in Infinispan to retrieve the cache names from individual nodes in the cluster and then collate them.
For more info, see https://docs.jboss.org/author/display/ISPN/Infinispan+Distributed+Execution+Framework and https://www.jboss.org/dms/judcon/presentations/Boston2011/JUDConBoston2011_day2track2session2.pdf
-
2. Re: How to get all the cache names in an Infinispan cache clusture
agrawal24_7 Dec 7, 2011 3:09 PM (in response to galder.zamarreno)Sorry for spamming at multiple forums, that was an act of desperation
yes I am not predefining the caches in the config file. Caches are dynamically created by various modules as and when needed.
I need to write a utility to check all the present caches and if possible monitor them or log all of them perodically for testing.
Let me try the Map-Reduce functionality and get back to you.
Thanks,
Ankur