Package org.hornetq.core.server

Examples of org.hornetq.core.server.HornetQServer.locateQueue()


         long timeout = System.currentTimeMillis() + 5000;

         pgStoreAddress = server.getPagingManager().getPageStore(ADDRESS);

         pgStoreAddress.getCursorProvier().getSubscription(server.locateQueue(ADDRESS).getID()).cleanupEntries();

         pgStoreAddress.getCursorProvier().cleanup();

         while (timeout > System.currentTimeMillis() && pgStoreAddress.isPaging())
         {
View Full Code Here


         server.start();

         locator = createInVMNonHALocator();
         sf = locator.createSessionFactory();

         Queue queue = server.locateQueue(ADDRESS);

         assertEquals(numberOfMessages, queue.getMessageCount());

         LinkedList<Xid> xids = new LinkedList<Xid>();
View Full Code Here

                               PagingTest.PAGE_SIZE,
                               PagingTest.PAGE_MAX,
                               new HashMap<String, AddressSettings>());
         server.start();

         queue = server.locateQueue(ADDRESS);

         locator = createInVMNonHALocator();
         sf = locator.createSessionFactory();

         session = sf.createSession(true, false, false);
View Full Code Here

         server.start();

         locator = createInVMNonHALocator();
         sf = locator.createSessionFactory();

         Queue queue = server.locateQueue(ADDRESS);

         assertEquals(numberOfMessages, queue.getMessageCount());

         LinkedList<Xid> xids = new LinkedList<Xid>();
View Full Code Here

      List<PagedMessage> msgs = pg.read(server.getStorageManager());

      pg.close();

      long queues[] = new long[] { server.locateQueue(new SimpleString("q1")).getID() };

      for (long q : queues)
      {
         for (int i = 0; i < msgs.size(); i++)
         {
View Full Code Here

         long timeout = System.currentTimeMillis() + 5000;

         pgStoreAddress = server.getPagingManager().getPageStore(ADDRESS);

         pgStoreAddress.getCursorProvier().getSubscription(server.locateQueue(ADDRESS).getID()).cleanupEntries(false);

         pgStoreAddress.getCursorProvier().cleanup();

         while (timeout > System.currentTimeMillis() && pgStoreAddress.isPaging())
         {
View Full Code Here

         session.close();

         server.stop();
         server.start();
        
         Queue queueExpiry = server.locateQueue(EXPIRY);
         Queue myQueue = server.locateQueue(MY_QUEUE);

         sf = locator.createSessionFactory();
        
         Thread.sleep(1500);
View Full Code Here

         server.stop();
         server.start();
        
         Queue queueExpiry = server.locateQueue(EXPIRY);
         Queue myQueue = server.locateQueue(MY_QUEUE);

         sf = locator.createSessionFactory();
        
         Thread.sleep(1500);
View Full Code Here

            {
               cons.close();
            }
         }

         waitForNotPaging(server.locateQueue(new SimpleString("Q1")));

      }
      finally
      {
         server.stop();
View Full Code Here

        session.commit();
        producer.close();
        session.close();
        //System.out.println("Just sent " + numberOfMessages + " messages.");

        Queue queue = server.locateQueue(PagingTest.ADDRESS);

        session = sf.createSession(false, false, false);

        session.start();
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.