Examples of HStoreConf


Examples of edu.brown.hstore.conf.HStoreConf

        // HStoreSite Stuff
        final int site_id = args.getIntParam(ArgumentsParser.PARAM_SITE_ID);
        Thread t = Thread.currentThread();
        t.setName(HStoreThreadManager.getThreadName(site_id, null, "main"));
       
        HStoreConf hstore_conf = HStoreConf.initArgumentsParser(args);
        if (debug.val)
            LOG.debug("HStoreConf Parameters:\n" + HStoreConf.singleton().toString(true));
       
        HStoreSite hstore_site = HStore.initialize(args.catalogContext, site_id, hstore_conf);
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

     * Returns the directory where the EE should store the anti-cache database
     * for this PartitionExecutor
     * @return
     */
    public static File getDatabaseDir(PartitionExecutor executor) {
        HStoreConf hstore_conf = executor.getHStoreConf();
        Database catalog_db = CatalogUtil.getDatabase(executor.getPartition());

        // First make sure that our base directory exists
        String base_dir = FileUtil.realpath(hstore_conf.site.anticache_dir +
                File.separatorChar +
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

    @Override
    protected void setUp() throws Exception {
        super.setUp(ProjectType.TPCC);
        this.addPartitions(NUM_PARTITIONS);
       
        HStoreConf hstore_conf = HStoreConf.singleton();
        hstore_conf.site.markov_path_caching = false;
        hstore_conf.site.markov_fast_path = false;
        hstore_conf.site.markov_force_traversal = true;
        hstore_conf.site.markov_learning_enable = false;
       
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

    protected ClientInterface(HStoreSite hstore_site, int port) {
       
        this.hstore_site = hstore_site;
        this.acceptor = new ClientAcceptor(port, hstore_site.getVoltNetwork());

        HStoreConf hstore_conf = hstore_site.getHStoreConf();
        int num_partitions = hstore_site.getLocalPartitionIds().size();
       
        this.maxPendingTxnBytes = (int)(hstore_conf.site.network_incoming_limit_bytes * num_partitions);
        this.maxPendingTxnCount = (int)(hstore_conf.site.network_incoming_limit_txns * num_partitions);
       
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

//        // m_jarFileName is already prefixed with test output path.
//        config.m_pathToCatalog = m_jarFileName;
//        config.m_profilingLevel = ProcedureProfiler.Level.DISABLED;

        this.catalogContext = CatalogUtil.loadCatalogContextFromJar(m_jarFileName);
        HStoreConf hstore_conf = HStoreConf.singleton(HStoreConf.isInitialized() == false);
        hstore_conf.loadFromArgs(this.confParams);
        m_server = new ServerThread(this.catalogContext, hstore_conf, 0);
        m_server.start();
        m_server.waitForInitialization();
    }
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

        super(name);
    }
   
   
    public WikipediaLoader initWikipediaDatabase(final CatalogContext catalogContext, final Client client) throws Exception {
        HStoreConf hstore_conf = HStoreConf.singleton();
        String args[] = {
            "NOCONNECTIONS=true",
            "CLIENT.SCALEFACTOR=" + hstore_conf.client.scalefactor,
        };
        WikipediaLoader loader = new WikipediaLoader(args) {
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

        return (loader);
    }
   
    public WikipediaClient initWikipediaClient(final CatalogContext catalogContext, final Client client) throws Exception {
       
        HStoreConf hstore_conf = HStoreConf.singleton();
        String args[] = {
            "NOCONNECTIONS=true",
            "CLIENT.SCALEFACTOR=" + hstore_conf.client.scalefactor,
        };
        WikipediaClient benchmarkClient = new WikipediaClient(args) {
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

//        config.m_noLoadLibVOLTDB = (m_target == BackendTarget.HSQLDB_BACKEND);
//        config.m_pathToCatalog = m_jarFileName;
//        config.m_profilingLevel = ProcedureProfiler.Level.DISABLED;
//        config.m_port = HStoreConstants.DEFAULT_PORT;

        HStoreConf hstore_conf = HStoreConf.singleton(HStoreConf.isInitialized() == false);
        hstore_conf.loadFromArgs(this.confParams);
       
        String namePrefix = null;
        if (m_jarFileName.getName().contains("-")) {
            namePrefix = m_jarFileName.getName().split("-")[0].replace(".jar", "");
        }
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

    public BingoClient(String args[]) {
        super(args);
        Random r = new Random();
       
        // Load our good old friend Mister HStoreConf
        HStoreConf hstore_conf = this.getHStoreConf();
       
        final int num_tournaments = (int)Math.round(BingoConstants.maxTournaments * hstore_conf.client.scalefactor);
        final int num_clients = this.getNumClients();
        final int client_id = this.getClientId();
        for (int i=1; i <= num_tournaments; i++) {
View Full Code Here

Examples of edu.brown.hstore.conf.HStoreConf

        this.replicated_batch_size = MAX_BATCH_SIZE / catalogContext.numberOfPartitions;
       
        if (debug.val)
            LOG.debug("Loader Configuration:\n" + m_tpccConfig);
       
        HStoreConf hstore_conf = this.getHStoreConf();
        for (int ii = 0; ii < m_tpccConfig.num_loadthreads; ii++) {
            ScaleParameters parameters = ScaleParameters.makeWithScaleFactor(m_tpccConfig, hstore_conf.client.scalefactor);
            assert parameters != null;

            RandomGenerator generator = new RandomGenerator.Implementation();
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.