Package edu.brown.hstore.PartitionLockQueue

Examples of edu.brown.hstore.PartitionLockQueue.QueueState


     * testThrottling
     */
    @Test
    public void testThrottling() throws Exception {
        // Always start off as empty
        QueueState state = this.queueDbg.checkQueueState();
        assertEquals(QueueState.BLOCKED_EMPTY, state);
       
        int max = NUM_TXNS / 2;
        this.queue.setAllowDecrease(false);
        this.queue.setAllowIncrease(false);
View Full Code Here


     * testQueueState
     */
    @Test
    public void testQueueState() throws Exception {
        // Always start off as empty
        QueueState state = this.queueDbg.checkQueueState();
        assertEquals(QueueState.BLOCKED_EMPTY, state);
       
        // Insert a bunch of txns that all have the same initiating timestamp
        Collection<AbstractTransaction> added = this.loadQueue(NUM_TXNS);
        assertEquals(added.size(), this.queue.size());
View Full Code Here

     * testQueueStateAfterRemove
     */
    @Test
    public void testQueueStateAfterRemove() throws Exception {
        // Always start off as empty
        QueueState state = this.queueDbg.checkQueueState();
        assertEquals(QueueState.BLOCKED_EMPTY, state);
       
        // Insert a bunch of txns that all have the same initiating timestamp
        Collection<AbstractTransaction> added = this.loadQueue(NUM_TXNS);
        assertEquals(added.size(), this.queue.size());
View Full Code Here

TOP

Related Classes of edu.brown.hstore.PartitionLockQueue.QueueState

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.