Examples of clearStatistics()


Examples of net.sf.ehcache.Cache.clearStatistics()

            Cache cache = ehcacheManager.getCache(cacheName);
            if (cache != null) {
                // flush
                cache.removeAll(!propagateInCluster);
                // reset statistics
                cache.clearStatistics();
            }
        }

        // Hiberante caches
        flushHibernateCaches();
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

        Cache cache = ehcacheManager.getCache(cacheName);
        if (cache != null) {
            // flush
            cache.removeAll(!propagateInCluster);
            // reset statistics
            cache.clearStatistics();
            logger.info("...done flushing {}", cacheName);
        } else {
            logger.warn("Cache with the name {} not found. Skip flushing.", cacheName);
        }
    }
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

            Cache cache = ehcacheManager.getCache(cacheName);
            if (cache != null) {
                // flush
                cache.removeAll(!propagateInCluster);
                // reset statistics
                cache.clearStatistics();
                logger.info("...done flushing {}", cacheName);
            }
        }
    }
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

    }

    public void resetStatistics(String cacheName)
    {
        Cache cache = cacheManager.getCache(cacheName);
        cache.clearStatistics();
        calculatedStates.remove(cacheName);
    }
    protected List snapshotAndCalculateStatistics(boolean calculate)
    {
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

    public Object clear(
            @PathVariable("cacheName") String cacheName
    ) {

        Cache cache = cacheManager.getCache(cacheName);
        cache.clearStatistics();
        cache.removeAll();

        return "操作成功!";

    }
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

    }

    public void resetStatistics(String cacheName)
    {
        Cache cache = cacheManager.getCache(cacheName);
        cache.clearStatistics();
        calculatedStates.remove(cacheName);
    }
    protected List<CacheMonitorState> snapshotAndCalculateStatistics(boolean calculate)
    {
View Full Code Here

Examples of net.sf.ehcache.Cache.clearStatistics()

     */
    public void clearStatistics() {
        for (String cacheName : getCacheNames()) {
            Cache cache = cacheManager.getCache(cacheName);
            if (cache != null) {
                cache.clearStatistics();
            }
        }
        sendNotification(STATISTICS_RESET);
    }

View Full Code Here

Examples of org.jahia.services.cache.Cache.clearStatistics()

                if (cache != null) {
                    logger.info("Flushing cache: " + cacheName);
                    // flush without notifying the other cluster nodes
                    cache.removeAll(true);
                    // reset statistics
                    cache.clearStatistics();
                }
            }
        }

        displaySettings (request, response, session);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.