Package com.foundationdb.server.test.mt.util

Examples of com.foundationdb.server.test.mt.util.ConcurrentTestBuilder.build()


        int perThread = ROW_COUNT / threadCount;
        for(int i = 0; i < threadCount; ++i) {
            builder.add("thread_"+i, insertCreator(rowType, 1 + i * perThread, perThread))
                   .sync("a", Stage.PRE_BEGIN);
        }
        List<MonitoredThread> threads = builder.build(this);
        ThreadHelper.runAndCheck(TIMEOUT,threads);
    }

    private static OperatorCreator insertCreator(final RowType rowType, int startID, int count) {
        final Row[] rows = new Row[count];
View Full Code Here


        ConcurrentTestBuilder builder = ConcurrentTestBuilderImpl.create();
        builder.add("insert_a", insertCreator(tid, testRow(rowType, 1, x1)))
               .sync("sync", Stage.POST_BEGIN)
               .add("insert_b", insertCreator(tid, testRow(rowType, 2, x2)))
               .sync("sync", Stage.POST_BEGIN);
        return builder.build(this);
    }

    private void expectSuccess(List<MonitoredThread> threads) {
        ThreadHelper.runAndCheck(threads);
    }
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.