Examples of TPCCClient


Examples of org.voltdb.benchmark.tpcc.TPCCClient

    TPCCConfig config = TPCCConfig.defaultConfig();

    public void setUp() {
        mockClient = new MockVoltClient();
        generator = new MockRandomGenerator();
        client = new TPCCClient(mockClient, generator, new Clock.Mock(),
                ScaleParameters.makeDefault((int) WAREHOUSES), this.config);
        mockClient.nextResult = new VoltTable[0];
        mockClient.resetAfterCall = false;
    }
View Full Code Here

Examples of org.voltdb.benchmark.tpcc.TPCCClient

    private static final int SMALL_ITEMS = 50;
    private static final int SMALL_DISTRICTS = 2;
    private static final int SMALL_CUSTOMERS = 20;
    private void makeSmallWarehouseClient() {
        client = new TPCCClient(mockClient, generator, new Clock.Mock(),
                new ScaleParameters(SMALL_ITEMS, 1, 1, SMALL_DISTRICTS, SMALL_CUSTOMERS, 0), this.config);
    }
View Full Code Here

Examples of org.voltdb.benchmark.tpcc.TPCCClient

                // XXX HACK to find catalog jar
                "CATALOG=" + "./obj/release/testobjects/" + projectJAR, "" };

        MOCK_ARGS[MOCK_ARGS.length - 1] = HStoreConstants.BENCHMARK_PARAM_PREFIX;

        TPCCClient tpccClient = new TPCCClient(MOCK_ARGS);

        // Run transactions
        long k_itr = 0;
        long numTransactions = NUM_TRANSACTIONS;
        long period = numTransactions / 10;

        for (k_itr = 0; k_itr < numTransactions; k_itr++) {
            boolean response = tpccClient.runOnce();
            assertEquals(response, true);

            if (k_itr % period == 0)
                System.out.println(String.format("Transactions Processed: %6d / %d", k_itr, numTransactions));
        }           
View Full Code Here

Examples of org.voltdb.benchmark.tpcc.TPCCClient

                // XXX HACK to find catalog jar
                "CATALOG=" + "./obj/release/testobjects/" + projectJAR, "" };

        MOCK_ARGS[MOCK_ARGS.length - 1] = HStoreConstants.BENCHMARK_PARAM_PREFIX;

        TPCCClient tpccClient = new TPCCClient(MOCK_ARGS);

        // Run transactions
        long k_itr = 0;
        long numTransactions = NUM_TRANSACTIONS;
        long period = numTransactions / 10;

        for (k_itr = 0; k_itr < numTransactions; k_itr++) {
            boolean response = tpccClient.runOnce();
            assertEquals(response, true);

            if (k_itr % period == 0)
                System.out.println(String.format("Transactions Processed: %6d / %d", k_itr, numTransactions));
        }
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.