private void showHibernateStatistics() { HibernateCacheStatisticsVo vo = domain.getHibernateCacheStatistics(); form.hits().setValue(vo.getSecondLevelCacheHitCount()); form.misses().setValue(vo.getSecondLevelCacheMissCount()); form.puts().setValue(vo.getSecondLevelCachePutCount()); }
public HibernateCacheStatisticsVo getHibernateCacheStatistics() { HibernateCacheStatisticsVo vo = new HibernateCacheStatisticsVo(); vo.setSecondLevelCacheHitCount(Long.toString( getSecondLevelCacheHitCount())); vo.setSecondLevelCacheMissCount(Long.toString(getSecondLevelCacheMissCount())); vo.setSecondLevelCachePutCount(Long.toString(getSecondLevelCachePutCount())); return vo; }