我希望在运行服务器时查看Ehcache的所有统计信息。 在文档中我找到了诸如“StatisticsGateway”和“SampledCache”之类的对象。我正在使用ehcache 2.9。Ehcache统计信息
通过使用StatisticsGateway获取不完整的统计信息。当使用SampledCache对象时,我可以获得更多的统计信息,但无法以某种方式描述检索对象。
例如,获得StatisticsGateway对象如下:
Cache cache = cacheManager.getCache("name");
StatisticsGateway statistic = cache.getStatistics();
statistic.cacheHitCount() etc.
如何获得SampledCache对象?
在此先感谢!