Package edu.brown.benchmark.seats.SEATSClient

Examples of edu.brown.benchmark.seats.SEATSClient.Transaction


        CatalogContext catalogContext = this.getCatalogContext();
        this.initializeSEATSDatabase(catalogContext, client);
        SEATSClient benchmarkClient = this.initializeSEATSClient(catalogContext, client);
        assertNotNull(benchmarkClient);
    
        Transaction txn = Transaction.FIND_OPEN_SEATS;
        Pair<Object[], ProcedureCallback> pair = benchmarkClient.getFindOpenSeatsParams();
        assertNotNull(pair);
        Object params[] = pair.getFirst();
    
        ClientResponse cresponse = null;
        try {
            cresponse = client.callProcedure(txn.getExecName(), params);
            assertEquals(Status.OK, cresponse.getStatus());
        } catch (ProcCallException ex) {
            cresponse = ex.getClientResponse();
            assertEquals(cresponse.toString(), Status.ABORT_USER, cresponse.getStatus());
        }
View Full Code Here


        cresponse = RegressionSuiteUtil.sql(client, sql);
        long orig_num_seats = cresponse.getResults()[0].asScalarLong();
        assert(orig_num_seats > 0);
       
        // Then insert a new reservation
        Transaction txn = Transaction.NEW_RESERVATION;
        cresponse = client.callProcedure(txn.getExecName(), params);
        assertEquals(cresponse.toString(), Status.OK, cresponse.getStatus());
       
        // Then check that the number of available seats is reduced by one
        cresponse = RegressionSuiteUtil.sql(client, sql);
        long new_num_seats = cresponse.getResults()[0].asScalarLong();
View Full Code Here

TOP

Related Classes of edu.brown.benchmark.seats.SEATSClient.Transaction

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.