Subversion Repositories SmartDukaan

Rev

Rev 3273 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3273 Rev 3297
Line 55... Line 55...
55
            cacheStat.put(NAME_KEY, cache.getName());
55
            cacheStat.put(NAME_KEY, cache.getName());
56
            cacheStat.put(EVICTION_POLICY_KEY, cache.getMemoryStoreEvictionPolicy().getName());
56
            cacheStat.put(EVICTION_POLICY_KEY, cache.getMemoryStoreEvictionPolicy().getName());
57
            cacheStat.put(MEMORY_STORE_KEY, Long.toString(cache.getMemoryStoreSize()));
57
            cacheStat.put(MEMORY_STORE_KEY, Long.toString(cache.getMemoryStoreSize()));
58
            cacheStat.put(OFF_HEAP_STORE_KEY, Long.toString(cache.getOffHeapStoreSize()));
58
            cacheStat.put(OFF_HEAP_STORE_KEY, Long.toString(cache.getOffHeapStoreSize()));
59
            cacheStat.put(DISK_STORE_KEY, Integer.toString(cache.getDiskStoreSize()));
59
            cacheStat.put(DISK_STORE_KEY, Integer.toString(cache.getDiskStoreSize()));
60
            cacheStat.put(SEARCHES_PER_SEC_KEY, Long.toString(cache.getSearchesPerSecond()));
-
 
61
            cacheStat.put(STATUS_KEY, cache.getStatus().toString());
60
            cacheStat.put(STATUS_KEY, cache.getStatus().toString());
62
            
61
            
63
            Statistics stat = cache.getStatistics();
62
            Statistics stat = cache.getStatistics();
64
            cacheStat.put(AVG_GET_TIME_KEY, Float.toString(stat.getAverageGetTime()));
63
            cacheStat.put(AVG_GET_TIME_KEY, Float.toString(stat.getAverageGetTime()));
65
            cacheStat.put(AVG_SEARCH_TIME_KEY, Float.toString(stat.getAverageSearchTime()));
64
            cacheStat.put(AVG_SEARCH_TIME_KEY, Float.toString(stat.getAverageSearchTime()));
66
            cacheStat.put(CACHE_HITS_KEY, Long.toString(stat.getCacheHits()));
65
            cacheStat.put(CACHE_HITS_KEY, Long.toString(stat.getCacheHits()));
67
            cacheStat.put(CACHE_MISSES_KEY, Long.toString(stat.getCacheMisses()));
66
            cacheStat.put(CACHE_MISSES_KEY, Long.toString(stat.getCacheMisses()));
68
            cacheStat.put(EVICTION_COUNT_KEY, Long.toString(stat.getEvictionCount()));
67
            cacheStat.put(EVICTION_COUNT_KEY, Long.toString(stat.getEvictionCount()));
-
 
68
            cacheStat.put(SEARCHES_PER_SEC_KEY, Long.toString(stat.getSearchesPerSecond()));
69
            cacheStats.add(cacheStat);
69
            cacheStats.add(cacheStat);
70
            log.info(stat);
70
            log.info(stat);
71
        }
71
        }
72
        return "index";
72
        return "index";
73
    }
73
    }