Package edu.brown.benchmark.tm1

Examples of edu.brown.benchmark.tm1.TM1Client$TM1Callback


     */
    @Override
    public void runLoop() {
        int no_connection = 10000;
        try {
            final Transaction target = selectTransaction();

            LOG.debug("Executing txn " + target);

            while (!this.getClientHandle().callProcedure(new TPCECallback(target), target.callName, this.generateClientArgs(target))) {
                this.getClientHandle().backpressureBarrier();
View Full Code Here


    @Override
    protected boolean runOnce() throws IOException {
        boolean ret = false;
        try {
            final Transaction target = selectTransaction();

            LOG.debug("Executing txn " + target);

            ret = this.getClientHandle().callProcedure(new TPCECallback(target), target.callName, this.generateClientArgs(target));
        } catch (Exception ex) {
View Full Code Here

        loader.load();
    }

    public static final void initializeTM1Database(final CatalogContext catalogContext, final Client client) throws Exception {
        String args[] = { "NOCONNECTIONS=true", };
        TM1Loader loader = new TM1Loader(args) {
            {
                this.setCatalogContext(catalogContext);
                this.setClientHandle(client);
            }
            @Override
            public CatalogContext getCatalogContext() {
                return (catalogContext);
            }
        };
        loader.load();
    }
View Full Code Here

        builder.setGlobalConfParameter("site.specexec_enable", true);
        builder.setGlobalConfParameter("site.specexec_ignore_all_local", false);
        builder.setGlobalConfParameter("site.specexec_scheduler_checker", SpeculationConflictCheckerType.TABLE);

        // build up a project builder for the TPC-C app
        TM1ProjectBuilder project = new TM1ProjectBuilder();
        project.addAllDefaults();
        project.addProcedure(RemoteIdle.class);
        project.addProcedure(UpdateAll.class);
        project.addProcedure(UpdateOne.class);
       
        boolean success;
       
        /////////////////////////////////////////////////////////////
        // CONFIG #1: 1 Local Site with 2 Partitions running on JNI backend
View Full Code Here

        // the suite made here will all be using the tests from this class
        MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestTM1Suite.class);
        builder.setGlobalConfParameter("client.scalefactor", SCALEFACTOR);

        // build up a project builder for the TPC-C app
        TM1ProjectBuilder project = new TM1ProjectBuilder();
        project.addAllDefaults();
       
        boolean success;
       
        /////////////////////////////////////////////////////////////
        // CONFIG #1: 1 Local Site/Partition running on JNI backend
View Full Code Here

TOP

Related Classes of edu.brown.benchmark.tm1.TM1Client$TM1Callback

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.