javainfinispan

How to get Hot Rod client's statistics?


I'm using Hot Rod Java client for communicating with Infinispan Remote Cache.
How can I get the client's statistics regarding cache usage (hits, misses etc)?


Solution

  • To obtain statistics for a remote cache use https://docs.jboss.org/infinispan/14.0/apidocs/org/infinispan/client/hotrod/RemoteCache.html#clientStatistics()