Package org.hornetq.core.replication.impl

Examples of org.hornetq.core.replication.impl.ReplicationEndpointImpl


            prod.send(msg);
         }

         session.commit();

         ReplicationEndpointImpl endpoint = null;

         if (failBeforeConsume)
         {
            failSession(session, latch);
         }

         session.start();

         ClientConsumer cons = session.createConsumer(PagingFailoverTest.ADDRESS);

         final int MIDDLE = TOTAL_MESSAGES / 2;

         for (int i = 0; i < MIDDLE; i++)
         {
            ClientMessage msg = cons.receive(20000);
            Assert.assertNotNull(msg);
            msg.acknowledge();
            if (transacted && i % 10 == 0)
            {
               session.commit();
            }
            Assert.assertEquals(i, msg.getObjectProperty(new SimpleString("key")));
         }

         session.commit();

         if (endpoint != null)
         {
            endpoint.setDeletePages(true);
         }

         if (!failBeforeConsume)
         {
            failSession(session, latch);
View Full Code Here


      if (configuration.isBackup())
      {
         if (!configuration.isSharedStore())
         {
            replicationEndpoint = new ReplicationEndpointImpl(this);
            replicationEndpoint.start();
         }
         // We defer actually initialisation until the live node has contacted the backup
         HornetQServerImpl.log.info("Backup server initialised");
      }
View Full Code Here

      if (configuration.isBackup())
      {
         if (!configuration.isSharedStore())
         {
            replicationEndpoint = new ReplicationEndpointImpl(this);
            replicationEndpoint.start();
         }
         // We defer actually initialisation until the live node has contacted the backup
         HornetQServerImpl.log.info("Backup server initialised");
      }
View Full Code Here

      if (configuration.isBackup())
      {
         if (!configuration.isSharedStore())
         {
            replicationEndpoint = new ReplicationEndpointImpl(this);
            replicationEndpoint.start();
         }
         // We defer actually initialisation until the live node has contacted the backup
         HornetQServerImpl.log.info("Backup server initialised");
      }
View Full Code Here

            prod.send(msg);
         }

         session.commit();

         ReplicationEndpointImpl endpoint = null;

         if (failBeforeConsume)
         {
            failSession(session, latch);
         }
         else
         {
            endpoint = (ReplicationEndpointImpl)((HornetQServerImpl)server1Service).getReplicationEndpoint();
            if (endpoint != null)
            {
               endpoint.setDeletePages(false);
            }
         }

         session.start();

         ClientConsumer cons = session.createConsumer(PagingFailoverTest.ADDRESS);

         final int MIDDLE = TOTAL_MESSAGES / 2;

         for (int i = 0; i < MIDDLE; i++)
         {
            ClientMessage msg = cons.receive(20000);
            Assert.assertNotNull(msg);
            msg.acknowledge();
            if (transacted && i % 10 == 0)
            {
               session.commit();
            }
            Assert.assertEquals(i, msg.getObjectProperty(new SimpleString("key")));
         }

         session.commit();

         if (endpoint != null)
         {
            endpoint.setDeletePages(true);
         }

         if (!failBeforeConsume)
         {
            failSession(session, latch);
View Full Code Here

TOP

Related Classes of org.hornetq.core.replication.impl.ReplicationEndpointImpl

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.