Package org.apache.hadoop.hdfs.metrics.LookasideMetrics

Examples of org.apache.hadoop.hdfs.metrics.LookasideMetrics.LocalMetrics.reset()


    long evictPercent = 20;
    conf.setLong(LookasideCache.CACHESIZE, maxSize);
    conf.setLong(LookasideCache.CACHEEVICT_PERCENT,  evictPercent);
    LookasideCache cache = new LookasideCache(conf);
    LocalMetrics metrics = LookasideCache.getLocalMetrics();
    metrics.reset();

    assertTrue(cache.getCacheMaxSize() == maxSize);
    assertTrue(cache.getCacheSize() == 0);
    assertTrue(cache.getCacheEvictPercent() == evictPercent);
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.