This content has been marked as final.
Show 2 replies
-
1. Re: View distribution of cache in your cluster
pferraro Mar 11, 2015 7:29 PM (in response to mylos78)This is not possible to do by a management operation, since there is no way to resolve the class of the key type. However, you can do this at runtime via:
@Resource(lookup = "java:jboss/infinispan/cache/container-name/cache-name") private Cache<K, V> cache; public Address locate(K key) { return this.cache.getAdvancedCache().getDistributionManager().getPrimaryLocation(key); }
-
2. Re: View distribution of cache in your cluster
mylos78 Mar 12, 2015 4:13 AM (in response to pferraro)Thanks! looks interesting
Mylos