Package org.voltdb.StatsProcProfTable

Examples of org.voltdb.StatsProcProfTable.ProcProfRow


    @Test
    public void testBaseCase() throws Exception {
        // validate sensical round-trip of one row.
        ProcProfRow[] data = {
            new ProcProfRow(1371587140278L, "A", 0L, 100L, 1L, 2L, 3L, 4L, 5L)
        };

        ResultRow[] result = {
            new ResultRow(1371587140278L, "A", 100L, 100L, 3L, 1L, 2L, 5L, 4L)
        };
View Full Code Here


    }

    @Test
    public void testAllZeros() throws Exception {
        // validate paranoia about an all zero row - just in case.
        ProcProfRow data[] = {
            new ProcProfRow(1371587140278L, "B", 0L, 0L, 0L, 0L, 0L, 0L, 0L)
        };
        ResultRow result[] = {
            new ResultRow(1371587140278L, "B", 100L, 0L, 0L, 0L, 0L, 0L, 0L)
        };
        StatsProcProfTable dut = new StatsProcProfTable();
View Full Code Here

    }

    @Test
    public void testMultipleProcs() throws Exception {
        // 2 procs, 2 partitions - make sure min,max,avg,wtd works
        ProcProfRow data[] = {
            //                          TS/Proc/Part/invok/min/max/avg/fail/abort
            new ProcProfRow(1371587140278L, "B", 0L, 100L, 2L, 5L, 4L, 17L, 18L),
            new ProcProfRow(1371587140278L, "A", 1L, 1L10L, 20L, 30L, 0L, 18L),
            new ProcProfRow(1371587140278L, "B", 1L, 100L1L, 2L, 3L, 17L, 18L)
        };
        ResultRow result[] = {
            //                         TS/Proc/wtd/invok/avg/min/max/abort/fail
            new ResultRow(1371587140278L, "B", 95L, 200L, 3L, 1L, 5L, 36L, 34L),
            new ResultRow(1371587140278L, "A", 5L, 1L, 30L, 10L, 20L, 18L, 0L)
View Full Code Here

    @Test
    public void testSiteDedupe() throws Exception {
        // need to not double count invocations at replicas, but do look at
        // min, max, avg, fail, abort
        ProcProfRow data[] = {
            //                          TS/Proc/Part/invok/min/max/avg/fail/abort
            new ProcProfRow(1371587140278L, "B", 0L, 100L, 2L, 5L, 4L, 17L, 18L),
            new ProcProfRow(1371587140278L, "A", 1L, 1L10L, 20L, 30L, 0L, 18L),
            new ProcProfRow(1371587140278L, "B", 0L, 100L, 1L, 2L, 2L, 17L, 18L),
            new ProcProfRow(1371587140278L, "B", 1L, 100L4L, 4L, 3L, 17L, 18L)
        };
        ResultRow result[] = {
            //                         TS/Proc/wtd/invok/avg/min/max/abort/fail
            new ResultRow(1371587140278L, "B", 95L, 200L, 3L, 1L, 5L, 36L, 34L),
            new ResultRow(1371587140278L, "A", 5L, 1L, 30L, 10L, 20L, 18L, 0L)
View Full Code Here

    @Test
    public void testSiteNoDedupe() throws Exception {
        // need to not double count invocations at replicas, but do look at
        // min, max, avg, fail, abort
        ProcProfRow data[] = {
            //                          TS/Proc/Part/invok/min/max/avg/fail/abort
            new ProcProfRow(1371587140278L, "B", 0L, 100L, 2L, 5L, 4L, 17L, 18L),
            new ProcProfRow(1371587140278L, "A", 1L, 1L, 10L, 20L, 30L, 0L, 18L),
            new ProcProfRow(1371587140278L, "B", 0L, 100L, 1L, 2L, 2L, 17L, 18L),
            new ProcProfRow(1371587140278L, "B", 1L, 100L, 4L, 4L, 3L, 17L, 18L)
        };
        ResultRow result[] = {
            //               TS/         Proc /wtd/ invok/avg/ min/max/abort/fail
            new ResultRow(1371587140278L, "B", 97L, 300L, 3L, 1L, 5L, 54L, 51L),
            new ResultRow(1371587140278L, "A", 3L, 1L, 30L, 10L, 20L, 18L, 0L)
View Full Code Here

    @Test
    public void testRounding() throws Exception {
        // need to not double count invocations at replicas, but do look at
        // min, max, avg, fail, abort
        ProcProfRow data[] = {
            //                          TS/Proc/Part/invok/min/max/avg/fail/abort
            new ProcProfRow(1371587140278L, "B", 0L, 10000000L, 2L, 5L, 4L, 17L, 18L),
            new ProcProfRow(1371587140278L, "A", 0L, 1L, 10L, 20L, 30L, 0L, 18L)
        };
        ResultRow result[] = {
            //               TS/         Proc /wtd/ invok/avg/ min/max/fail/abort
            new ResultRow(1371587140278L, "B", 100L, 10000000L, 4L, 2L, 5L, 18L, 17L),
            new ResultRow(1371587140278L, "A", 0L, 1L, 30L, 10L, 20L, 18L, 0L)
View Full Code Here

TOP

Related Classes of org.voltdb.StatsProcProfTable.ProcProfRow

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.