Package org.hornetq.core.persistence

Examples of org.hornetq.core.persistence.StorageManager.waitOnOperations()


      txCommit.commit();

      txRollback.rollback();
     
      storage.waitOnOperations();

      // Second:after pgtxCommit was done
      for (int i = 200; i < 300; i++)
      {
         PagedReference pos = iterator.next();
View Full Code Here


      assertNull(iterator.next());
     
      txLazy.commit();
     
      storage.waitOnOperations();

      for (int i = 0; i < 100; i++)
      {
         PagedReference pos = iterator.next();
         assertNotNull("Null at position " + i, pos);
View Full Code Here

         assertEquals(0, counter.getValue());

         tx.commit();

         storage.waitOnOperations();

         assertEquals(1, counter.getValue());
      }
      finally
      {
View Full Code Here

  
            if (i % 200 == 0)
            {
               tx.commit();
     
               storage.waitOnOperations();

               assertEquals(i + 1, counter.getValue());
              
               tx = new TransactionImpl(server.getStorageManager());
            }
View Full Code Here

            }
         }

         tx.commit();
        
         storage.waitOnOperations();
        
         assertEquals(2100, counter.getValue());
        
         server.stop();
View Full Code Here

  
            if (i % 200 == 0)
            {
               tx.commit();
     
               storage.waitOnOperations();

               assertEquals(i + 1, counter.getValue());
              
               tx = new TransactionImpl(server.getStorageManager());
            }
View Full Code Here

            }
         }

         tx.commit();
        
         storage.waitOnOperations();
        
         assertEquals(2100, counter.getValue());
        
         server.stop();
View Full Code Here

      assertEquals(0, counter.getValue());

      tx.commit();

      storage.waitOnOperations();

      assertEquals(1, counter.getValue());

      sl.close();
View Full Code Here

      assertEquals(0, counter.getValue());

      tx.prepare();

      storage.waitOnOperations();

      assertEquals(0, counter.getValue());
     
      server.stop();
     
View Full Code Here

     
      assertEquals(0, counter.getValue());
     
      tx.commit(false);
     
      storage.waitOnOperations();
     
      assertEquals(2000, counter.getValue());
     
     
   }
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.