The unit tests for statistics are located in org.jboss.cache.mgmt. The MgmtCoreTest class is the one that tests puts, gets, evictions, etc.
I've only executed tests against TreeCache, not PojoCache (or TreeCacheAop). AFAIK, there was no discussion of PojoCache when we implemented cache statistics. I think that statistics will work for PojoCache when you use the put() and get() methods. These should be handled by the underlying TreeCache and the associated statistics will be correct. I've validated this to some degree by using the TomcatClusteringCache mbean to put and get cache entries. The statistics are correct after these operations. However this issue states that statistics don't work when PojoCache uses the putObject() method. I haven't tested it personally but I have looked at the code and it doesn't look like this method is delegated to TreeCache or one of its interceptors. Unless I'm mistaken, this is an area that we never discussed. Maybe PojoCache should provide its own interceptor containing statistics that are unique to it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980667#3980667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980667 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user