Package org.hornetq.core.persistence.impl.journal

Examples of org.hornetq.core.persistence.impl.journal.LargeServerMessageInSync


            if (!(largeMessage instanceof LargeServerMessageInSync))
            {
               HornetQLogger.LOGGER.largeMessageIncomatible();
               return;
            }
            LargeServerMessageInSync largeMessageInSync=(LargeServerMessageInSync)largeMessage;
            channel = largeMessageInSync.getSyncFile();
            break;
         }
         case PAGE:
         {
            Page page = getPage(msg.getPageStore(), (int)msg.getId());
View Full Code Here


   private void createLargeMessage(final long id, boolean sync)
   {
      ReplicatedLargeMessage msg;
      if (sync)
         msg = new LargeServerMessageInSync(storage);
      else
         msg = storage.createLargeMessage();

      msg.setDurable(true);
      msg.setMessageID(id);
View Full Code Here

      for (Entry<Long, ReplicatedLargeMessage> entry : largeMessages.entrySet())
      {
         ReplicatedLargeMessage lm = entry.getValue();
         if (lm instanceof LargeServerMessageInSync)
         {
            LargeServerMessageInSync lmSync = (LargeServerMessageInSync)lm;
            lmSync.joinSyncedData(buffer);
         }
      }

      journalsHolder = null;
      quorumManager.setLiveID(liveID);
View Full Code Here

            if (!(largeMessage instanceof LargeServerMessageInSync))
            {
               HornetQServerLogger.LOGGER.largeMessageIncompatible();
               return;
            }
            LargeServerMessageInSync largeMessageInSync = (LargeServerMessageInSync)largeMessage;
            channel1 = largeMessageInSync.getSyncFile();
            break;
         }
         case PAGE:
         {
            Page page = getPage(msg.getPageStore(), (int)msg.getId());
View Full Code Here

   private void createLargeMessage(final long id, boolean liveToBackupSync)
   {
      ReplicatedLargeMessage msg;
      if (liveToBackupSync)
      {
         msg = new LargeServerMessageInSync(storageManager);
      }
      else
      {
         msg = storageManager.createLargeMessage();
      }
View Full Code Here

      for (Entry<Long, ReplicatedLargeMessage> entry : largeMessages.entrySet())
      {
         ReplicatedLargeMessage lm = entry.getValue();
         if (lm instanceof LargeServerMessageInSync)
         {
            LargeServerMessageInSync lmSync = (LargeServerMessageInSync)lm;
            lmSync.joinSyncedData(buffer);
         }
      }

      journalsHolder = null;
      quorumManager.setLiveID(liveID);
View Full Code Here

            if (!(largeMessage instanceof LargeServerMessageInSync))
            {
               HornetQServerLogger.LOGGER.largeMessageIncompatible();
               return;
            }
            LargeServerMessageInSync largeMessageInSync=(LargeServerMessageInSync)largeMessage;
            channel1 = largeMessageInSync.getSyncFile();
            break;
         }
         case PAGE:
         {
            Page page = getPage(msg.getPageStore(), (int)msg.getId());
View Full Code Here

   private void createLargeMessage(final long id, boolean liveToBackupSync)
   {
      ReplicatedLargeMessage msg;
      if (liveToBackupSync)
      {
         msg = new LargeServerMessageInSync(storageManager);
      }
      else
      {
         msg = storageManager.createLargeMessage();
      }
View Full Code Here

      for (Entry<Long, ReplicatedLargeMessage> entry : largeMessages.entrySet())
      {
         ReplicatedLargeMessage lm = entry.getValue();
         if (lm instanceof LargeServerMessageInSync)
         {
            LargeServerMessageInSync lmSync = (LargeServerMessageInSync) lm;
            lmSync.joinSyncedData(buffer);
         }
      }

      journalsHolder = null;
      quorumManager.setLiveID(liveID);
View Full Code Here

            if (!(largeMessage instanceof LargeServerMessageInSync))
            {
               HornetQServerLogger.LOGGER.largeMessageIncompatible();
               return;
            }
            LargeServerMessageInSync largeMessageInSync = (LargeServerMessageInSync) largeMessage;
            channel1 = largeMessageInSync.getSyncFile();
            break;
         }
         case PAGE:
         {
            Page page = getPage(msg.getPageStore(), (int) msg.getId());
View Full Code Here

TOP

Related Classes of org.hornetq.core.persistence.impl.journal.LargeServerMessageInSync

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.