Package org.apache.hedwig.server.netty.ServerStats

Examples of org.apache.hedwig.server.netty.ServerStats.OpStats


     * ArrayIndexOutOfBoundException when latency time coming as negative.
     */
    @Test(timeout=60000)
    public void testUpdateLatencyShouldNotFailWithAIOBEWithNegativeLatency()
            throws Exception {
        OpStats opStat = new OpStats();
        opStat.updateLatency(-10);
        assertEquals("Should not update any latency metrics", 0,
                opStat.numSuccessOps);

    }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.server.netty.ServerStats.OpStats

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.