Examples of ProcInputRow


Examples of org.voltdb.StatsProcInputTable.ProcInputRow

    @Test
    public void testBaseCase() throws Exception {
        // validate sensical round-trip of one row.
        ProcInputRow[] data = {
                            //proc/part/time/invok/min/max/avg
            new ProcInputRow("proc", 0L, 12345L, 100*mB, 2L, 4L, 3L)
        };

        ResultRow[] result = {
                            //time/proc/perc/inok/min/max/avg/tot
            new ResultRow(12345L, "proc", 100L, 100*mB, 2L, 4L, 3L, 300L)
View Full Code Here

Examples of org.voltdb.StatsProcInputTable.ProcInputRow

    }

    @Test
    public void testAllZeros() throws Exception {
        // validate paranoia about an all zero row - just in case.
        ProcInputRow data[] = {     //proc/part/time/invok/min/max/avg
            new ProcInputRow("proc", 0L, 0L, 0L, 0L, 0L, 0L)

        };
        ResultRow result[] = //time/proc/perc/inok/min/max/avg/tot
            new ResultRow(0L, "proc", 100L, 0L, 0L, 0L, 0L, 0L)
        };
View Full Code Here

Examples of org.voltdb.StatsProcInputTable.ProcInputRow

        validateEmGood("testAllZeros", dut, result);
    }

    @Test
    public void testMultipleProcs() throws Exception {
        ProcInputRow data[] = {     //proc/part/time/invok/min/max/avg
            new ProcInputRow("A", 0L, 12345L, 300*mB, 3L, 5L, 4L),
            new ProcInputRow("B", 0L, 12345L, 100*mB, 1L, 4L, 2L),
            new ProcInputRow("B", 1L, 12345L, 100*mB, 1L, 3L, 2L)
        };
        ResultRow result[] = //time/proc/perc/inok/min/max/avg/tot
            new ResultRow(12345L, "A", 75L, 300*mB, 3L, 5L, 4L, 1200L),
            new ResultRow(12345L, "B", 25L, 200*mB, 1L, 4L, 2L, 400L)
        };
View Full Code Here

Examples of org.voltdb.StatsProcInputTable.ProcInputRow

    @Test
    public void testSiteDedupe() throws Exception {
        // need to not double count invocations at replicas, but do look at
        // min, max, avg
        ProcInputRow data[] = { //proc/part/time/invok/min/max/avg
            new ProcInputRow("proc", 0L, 12345L, 200*mB, 4L, 10L, 6L),
            new ProcInputRow("proc", 0L, 12345L, 100*mB, 4L, 25L, 10L),
            new ProcInputRow("proc", 0L, 12345L, 100*mB, 1L, 4L, 2L),
            new ProcInputRow("proc", 1L, 12345L, 400*mB, 2L, 8L, 4L)
        };
        ResultRow result[] = { //time/proc/perc/inok/min/max/avg/tot
            new ResultRow(12345L, "proc", 100L, 800 * mB, 1L, 25L, 4L, 3200L)
        };
        StatsProcInputTable dut = new StatsProcInputTable();
View Full Code Here

Examples of org.voltdb.StatsProcInputTable.ProcInputRow

        validateEmGood("testSiteDedupe", dut, result);
    }

    @Test
    public void testRounding() throws Exception {
        ProcInputRow data[] = {     //proc/part/time/invok/min/max/avg
            new ProcInputRow("A", 0L, 12345L, 10000000*mB, 3L, 5L, 4L),
            new ProcInputRow("B", 0L, 12345L, 1*mB, 1L, 4L, 2L)
        };
        ResultRow result[] = //time/proc/perc/inok/min/max/avg/tot
            new ResultRow(12345L, "A", 100L, 10000000*mB, 3L, 5L, 4L, 40000000L),
            new ResultRow(12345L, "B", 0L, 1*mB, 1L, 4L, 2L, 2L)
        };
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.