Package com.jitlogic.zorka.core.test.perfmon.support

Examples of com.jitlogic.zorka.core.test.perfmon.support.TestThreadRankLister.list()


                .feed(1, "Thread-1", 100, 0)
                .feed(3, "Thread-3", 100, 0);

        lister.runCycle(2000);

        List<ThreadRankItem> items = lister.list();

        assertEquals(2, items.size());
    }

View Full Code Here


        TestThreadRankLister lister = new TestThreadRankLister(mBeanServerRegistry).feed(1, "Thread-1", 1000, 500);
        lister.runCycle(1000);
        lister.clear().feed(1, "Thread-1", 2000, 1500);
        lister.runCycle(2000);

        ThreadRankItem item = lister.list().get(0);
        assertEquals(5.0, item.getAverage(0L, 0, 0), 0.001);
    }


    @Test
View Full Code Here

    @Test
    public void testTwoPassesWithWindowShift() {
        TestThreadRankLister lister = new TestThreadRankLister(mBeanServerRegistry).feed(1, "Thread-1", 6000, 0);
        lister.runCycle(1000);

        assertEquals(10.0, lister.list().get(0).getAverage(0L, 0,0), 0.001);

        lister.clear().feed(1, "Thread-1", 1500, 0);
        lister.runCycle(31000);

        assertEquals(12.5, lister.list().get(0).getAverage(0L, 0,0), 0.001);
View Full Code Here

        assertEquals(10.0, lister.list().get(0).getAverage(0L, 0,0), 0.001);

        lister.clear().feed(1, "Thread-1", 1500, 0);
        lister.runCycle(31000);

        assertEquals(12.5, lister.list().get(0).getAverage(0L, 0,0), 0.001);
        assertEquals(2.5, lister.list().get(0).getAverage(0L, 0,1), 0.001);
    }
}
View Full Code Here

        lister.clear().feed(1, "Thread-1", 1500, 0);
        lister.runCycle(31000);

        assertEquals(12.5, lister.list().get(0).getAverage(0L, 0,0), 0.001);
        assertEquals(2.5, lister.list().get(0).getAverage(0L, 0,1), 0.001);
    }
}
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.