Package voldemort.utils.ConsistencyFix

Examples of voldemort.utils.ConsistencyFix.Stats


        consistencyFix.close();
    }

    @Test
    public void testStats() throws InterruptedException {
        ConsistencyFix.Stats stats = new Stats(1000);

        long lastTimeMs = stats.lastTimeMs;
        TimeUnit.MILLISECONDS.sleep(2);
        for(int i = 0; i < 1001; ++i) {
            stats.incrementFixCount();
        }
        assertTrue(stats.fixCount == 1001);
        assertTrue(stats.startTimeMs < stats.lastTimeMs);
        assertTrue(lastTimeMs < System.currentTimeMillis());
View Full Code Here

TOP

Related Classes of voldemort.utils.ConsistencyFix.Stats

Copyright © 2018 www.massapicom. 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.