Package edu.brown.benchmark

Examples of edu.brown.benchmark.AbstractProjectBuilder$TransactionFrequencies


        }

        m_pollCount = hstore_conf.client.duration / hstore_conf.client.interval;
        resultsUploader = new ResultsUploader(m_config.projectBuilderClass, config);

        AbstractProjectBuilder tempBuilder = null;
        try {
            tempBuilder = m_builderClass.newInstance();
        } catch (Exception e) {
            LogKeys logkey =
                LogKeys.benchmark_BenchmarkController_UnableToInstantiateProjectBuilder;
View Full Code Here


        this.last_type = type;
        catalogContext = project_catalogs.get(type);
       
        if (catalogContext == null) {
            CatalogContext cc = null;
            AbstractProjectBuilder projectBuilder = getProjectBuilder(type);
           
            if (ENABLE_JAR_REUSE) {
                File jar_path = projectBuilder.getJarPath(true);
                if (needs_reset.contains(type)) {
                    jar_path.delete();
                    needs_reset.remove(type);
                }
                if (jar_path.exists()) {
                    LOG.debug("LOAD CACHE JAR: " + jar_path.getAbsolutePath());
                    cc = CatalogUtil.loadCatalogContextFromJar(jar_path);
                } else {
                    LOG.debug("MISSING JAR: " + jar_path.getAbsolutePath());
                }
            }
            if (cc == null) {
                File jarPath = projectBuilder.getJarPath(true);
                Catalog c = null;
                switch (type) {
                    case TPCE:
                        c = projectBuilder.createCatalog(fkeys, full_catalog);
                        break;
                    default:
                        c = projectBuilder.getFullCatalog(fkeys);
                        if (LOG.isDebugEnabled())
                            LOG.debug(type + " Catalog JAR: " + jarPath.getAbsolutePath());
                        break;
                } // SWITCH
                assert(c != null);
View Full Code Here

        assertNotNull(p_estimator);
        project_p_estimators.put(type, p_estimator);
    }

    public static AbstractProjectBuilder getProjectBuilder(ProjectType type) {
        AbstractProjectBuilder projectBuilder = AbstractProjectBuilder.getProjectBuilder(type);
        // 2012-10-11: We have to disable any replicated secondary indexes
        // because it will screw up a bunch of tests that we already have setup
        projectBuilder.enableReplicatedSecondaryIndexes(false);
        projectBuilder.removeReplicatedSecondaryIndexes();
        assert(projectBuilder != null);
        return (projectBuilder);
    }
View Full Code Here

    public void testTransactionFrequencies() throws Exception {
        for (ProjectType type : new ProjectType[] { ProjectType.AUCTIONMARK,
                                                    ProjectType.TPCC,
                                                    ProjectType.TM1,
                                                    ProjectType.TPCE } ) {
            AbstractProjectBuilder pb = AbstractProjectBuilder.getProjectBuilder(type);
            assertNotNull(type.toString(), pb);
            String txn_freq = pb.getTransactionFrequencyString();
            assertNotNull(txn_freq);
            assert(txn_freq.length() > 0);
        } // FOR
    }
View Full Code Here

TOP

Related Classes of edu.brown.benchmark.AbstractProjectBuilder$TransactionFrequencies

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.