Package com.linkedin.helix.monitoring

Examples of com.linkedin.helix.monitoring.StatCollector.reset()


    AssertJUnit.assertEquals((long)collector.getTotalSum(), 4950000);
    AssertJUnit.assertEquals((long)collector.getPercentile(40), 39400);
    AssertJUnit.assertEquals((long)collector.getMean(), 49500);
    AssertJUnit.assertEquals((long)collector.getMin(), 0);
   
    collector.reset();
   
    AssertJUnit.assertEquals(collector.getNumDataPoints(), 0);
    AssertJUnit.assertEquals((long)collector.getMax(), 0);
    AssertJUnit.assertEquals((long)collector.getTotalSum(), 0);
    AssertJUnit.assertEquals((long)collector.getPercentile(40), 0);
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.