Package org.hornetq.core.journal.impl.dataformat

Examples of org.hornetq.core.journal.impl.dataformat.ByteArrayEncoding


      }
   }

   public void appendDeleteRecordTransactional(final long txID, final long id, final byte[] record) throws Exception
   {
      appendDeleteRecordTransactional(txID, id, new ByteArrayEncoding(record));
   }
View Full Code Here


   public void appendPrepareRecord(final long txID,
                                   final byte[] transactionData,
                                   final boolean sync,
                                   final IOCompletion completion) throws Exception
   {
      appendPrepareRecord(txID, new ByteArrayEncoding(transactionData), sync, completion);
   }
View Full Code Here

   /* (non-Javadoc)
    * @see org.hornetq.core.journal.Journal#appendPrepareRecord(long, byte[], boolean)
    */
   public void appendPrepareRecord(final long txID, final byte[] transactionData, final boolean sync) throws Exception
   {
      appendPrepareRecord(txID, new ByteArrayEncoding(transactionData), sync);
   }
View Full Code Here

    */
   public void onReadAddRecord(final RecordInfo info) throws Exception
   {
      if (lookupRecord(info.id))
      {
         writeEncoder(new JournalAddRecord(true, info.id, info.getUserRecordType(), new ByteArrayEncoding(info.data)));
      }
   }
View Full Code Here

         writeEncoder(new JournalAddRecordTX(true,
                                             transactionID,
                                             recordInfo.id,
                                             recordInfo.getUserRecordType(),
                                             new ByteArrayEncoding(recordInfo.data)));
      }
   }
View Full Code Here

    */
   public void onReadDeleteRecordTX(final long transactionID, final RecordInfo recordInfo) throws Exception
   {
      incrementTransactionCounter(transactionID);

      writeEncoder(new JournalDeleteRecordTX(transactionID, recordInfo.id, new ByteArrayEncoding(recordInfo.data)));
   }
View Full Code Here

    */
   public void onReadPrepareRecord(final long transactionID, final byte[] extraData, final int numberOfRecords) throws Exception
   {
      int txcounter = getTransactionCounter(transactionID);

      writeEncoder(new JournalCompleteRecordTX(false, transactionID, new ByteArrayEncoding(extraData)), txcounter);
   }
View Full Code Here

      if (lookupRecord(recordInfo.id))
      {
         writeEncoder(new JournalAddRecord(false,
                                           recordInfo.id,
                                           recordInfo.userRecordType,
                                           new ByteArrayEncoding(recordInfo.data)));
      }
   }
View Full Code Here

         writeEncoder(new JournalAddRecordTX(false,
                                             transactionID,
                                             recordInfo.id,
                                             recordInfo.userRecordType,
                                             new ByteArrayEncoding(recordInfo.data)));
      }
   }
View Full Code Here

         }

         JournalInternalRecord controlRecord = new JournalAddRecord(true,
                                                                    1,
                                                                    (byte)0,
                                                                    new ByteArrayEncoding(filesToRename.toByteBuffer()
                                                                                                       .array()));



         HornetQBuffer renameBuffer = HornetQBuffers.dynamicBuffer(filesToRename.writerIndex());
View Full Code Here

TOP

Related Classes of org.hornetq.core.journal.impl.dataformat.ByteArrayEncoding

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.