Examples of writeDirect()


Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

      file.open(1, false);

      buffer.rewind();

      file.writeDirect(buffer, true);

      file.close();

      createJournal();
      startJournal();
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

      if (!channel.isOpen())
      {
         channel.open(1, false);
      }
      channel.writeDirect(ByteBuffer.wrap(data), true);
   }

   /**
    * Reserves files (with the given fileID) in the specified journal, and places a
    * {@link FileWrapperJournal} in place to store messages while synchronization is going on.
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

        
         writeBuffer.put(renameBuffer.toByteBuffer().array(), 0, renameBuffer.writerIndex());

         writeBuffer.rewind();

         controlFile.writeDirect(writeBuffer, true);

         return controlFile;
      }
      finally
      {
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

               start = System.currentTimeMillis();
            }

            bb1.rewind();

            file.writeDirect(bb1, true);
         }

         long end = System.currentTimeMillis();

         double rate = 1000 * (double)its / (end - start);
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

            {
               for (int i = 0; i < its; i++)
               {
                  bb1.rewind();

                  file.writeDirect(bb1, true, task);
                  // try
                  // {
                  // file.writeDirect(bb1, true);
                  // }
                  // catch (Exception e)
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

      if (!channel1.isOpen())
      {
         channel1.open(1, false);
      }
      channel1.writeDirect(ByteBuffer.wrap(data), true);
   }

   /**
    * Reserves files (with the given fileID) in the specified journal, and places a
    * {@link FileWrapperJournal} in place to store messages while synchronization is going on.
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

        
         writeBuffer.put(renameBuffer.toByteBuffer().array(), 0, renameBuffer.writerIndex());

         writeBuffer.rewind();

         controlFile.writeDirect(writeBuffer, true);

         return controlFile;
      }
      finally
      {
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

      if (!channel1.isOpen())
      {
         channel1.open(1, false);
      }
      channel1.writeDirect(ByteBuffer.wrap(data), true);
   }

   /**
    * Reserves files (with the given fileID) in the specified journal, and places a
    * {@link FileWrapperJournal} in place to store messages while synchronization is going on.
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

      if (!channel1.isOpen())
      {
         channel1.open(1, false);
      }
      channel1.writeDirect(ByteBuffer.wrap(data), true);
   }

   /**
    * Reserves files (with the given fileID) in the specified journal, and places a
    * {@link FileWrapperJournal} in place to store messages while synchronization is going on.
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.writeDirect()

         for (int i = 0; i < 200; i++)
         {
            buffer.put(i, (byte)1);
         }

         file.writeDirect(buffer, true);

         buffer = ByteBuffer.allocate(400);
         for (int i = 0; i < 400; i++)
         {
            buffer.put(i, (byte)2);
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.