Examples of JournalCompleteRecordTX


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

      try
      {
         JournalTransaction tx = getTransactionInfo(txID);

         JournalInternalRecord prepareRecord =
            new JournalCompleteRecordTX(TX_RECORD_TYPE.PREPARE, txID, transactionData);

         if (callback != null)
         {
            callback.storeLineUp();
         }
View Full Code Here

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

         if (tx == null)
         {
            throw new IllegalStateException("Cannot find tx with id " + txID);
         }

         JournalInternalRecord commitRecord = new JournalCompleteRecordTX(TX_RECORD_TYPE.COMMIT, txID, null);

         if (callback != null && lineUpContext)
         {
            callback.storeLineUp();
         }
View Full Code Here

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

      JournalTransaction tx = getTransactionInfo(txID);

      try
      {

         JournalInternalRecord prepareRecord = new JournalCompleteRecordTX(false, txID, transactionData);

         if (callback != null)
         {
            callback.storeLineUp();
         }
View Full Code Here

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

         if (tx == null)
         {
            throw new IllegalStateException("Cannot find tx with id " + txID);
         }

         JournalInternalRecord commitRecord = new JournalCompleteRecordTX(true, txID, null);

         if (callback != null)
         {
            callback.storeLineUp();
         }
View Full Code Here

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

    */
   public void onReadCommitRecord(final long transactionID, final int numberOfRecords) throws Exception
   {
      int txcounter = getTransactionCounter(transactionID);

      writeEncoder(new JournalCompleteRecordTX(true, transactionID, null), txcounter);
   }
View Full Code Here

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

    */
   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

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

      else
      {
         JournalTransaction newTransaction =  newTransactions.remove(transactionID);
         if (newTransaction != null)
         {
            JournalInternalRecord commitRecord = new JournalCompleteRecordTX(true, transactionID, null);
  
            checkSize(commitRecord.getEncodeSize());
  
            writeEncoder(commitRecord, newTransaction.getCounter(currentFile));
  
            newTransaction.commit(currentFile);
         }
View Full Code Here

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

      if (pendingTransactions.get(transactionID) != null)
      {

         JournalTransaction newTransaction = getNewJournalTransaction(transactionID);

         JournalInternalRecord prepareRecord = new JournalCompleteRecordTX(false,
                                                                           transactionID,
                                                                           new ByteArrayEncoding(extraData));

         checkSize(prepareRecord.getEncodeSize());

         writeEncoder(prepareRecord, newTransaction.getCounter(currentFile));

         newTransaction.prepare(currentFile);
View Full Code Here

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

         if (JournalImpl.LOAD_TRACE)
         {
            JournalImpl.trace("appendPrepareRecord txID " + txID + ", compacting = " + (compactor != null));
         }

         JournalInternalRecord prepareRecord = new JournalCompleteRecordTX(false, txID, transactionData);

         if (callback != null)
         {
            callback.storeLineUp();
         }
View Full Code Here

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

         if (tx == null)
         {
            throw new IllegalStateException("Cannot find tx with id " + txID);
         }

         JournalInternalRecord commitRecord = new JournalCompleteRecordTX(true, txID, null);

         if (callback != null)
         {
            callback.storeLineUp();
         }
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.