Package edu.brown.hstore.internal

Examples of edu.brown.hstore.internal.WorkFragmentMessage


        if (this.work_task == null) {
            this.work_task = new WorkFragmentMessage[hstore_site.getCatalogContext().numberOfPartitions];
        }
        int partition = fragment.getPartitionId();
        if (this.work_task[partition] == null) {
            this.work_task[partition] = new WorkFragmentMessage(this, fragment);
        } else {
            this.work_task[partition].setFragment(fragment);
        }
        return (this.work_task[partition]);
    }
View Full Code Here


     * @param ts
     * @param task
     */
    public void queueWork(AbstractTransaction ts, WorkFragment fragment) {
        assert(ts.isInitialized()) : "Unexpected uninitialized transaction: " + ts;
        WorkFragmentMessage work = ts.getWorkFragmentMessage(fragment);
        boolean success = this.work_queue.offer(work); // , true);
        assert(success) :
            String.format("Failed to queue %s at partition %d for %s",
                          work, this.partitionId, ts);
        ts.markQueuedWork(this.partitionId);
        if (debug.val)
            LOG.debug(String.format("%s - Added %s to partition %d " +
                      "work queue [size=%d]",
                      ts, work.getClass().getSimpleName(), this.partitionId,
                      this.work_queue.size()));
        if (hstore_conf.site.specexec_enable) this.specExecScheduler.interruptSearch(work);
    }
View Full Code Here

        this.ts1.testInit(NEXT_TXN_ID++, BASE_PARTITION, null, new PartitionSet(BASE_PARTITION), catalog_proc);
       
        // Initialize some messages that we can use
        this.utilMsg = new UtilityWorkMessage();
        this.startMsg = new StartTxnMessage(ts1);
        this.workMsg = new WorkFragmentMessage(ts1, mockFragment);
    }
View Full Code Here

TOP

Related Classes of edu.brown.hstore.internal.WorkFragmentMessage

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.