1132113311341135113611371138
} } public void appendDeleteRecordTransactional(final long txID, final long id, final byte[] record) throws Exception { appendDeleteRecordTransactional(txID, id, new ByteArrayEncoding(record)); }
1183118411851186118711881189
public void appendPrepareRecord(final long txID, final byte[] transactionData, final boolean sync, final IOCompletion completion) throws Exception { appendPrepareRecord(txID, new ByteArrayEncoding(transactionData), sync, completion); }
1191119211931194119511961197
/* (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); }
7677787980818283
*/ public void onReadAddRecord(final RecordInfo info) throws Exception { if (lookupRecord(info.id)) { writeEncoder(new JournalAddRecord(true, info.id, info.getUserRecordType(), new ByteArrayEncoding(info.data))); } }
93949596979899100
writeEncoder(new JournalAddRecordTX(true, transactionID, recordInfo.id, recordInfo.getUserRecordType(), new ByteArrayEncoding(recordInfo.data))); } }
122123124125126127128
*/ public void onReadDeleteRecordTX(final long transactionID, final RecordInfo recordInfo) throws Exception { incrementTransactionCounter(transactionID); writeEncoder(new JournalDeleteRecordTX(transactionID, recordInfo.id, new ByteArrayEncoding(recordInfo.data))); }
132133134135136137138
*/ 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); }
153154155156157158159160
if (lookupRecord(recordInfo.id)) { writeEncoder(new JournalAddRecord(false, recordInfo.id, recordInfo.userRecordType, new ByteArrayEncoding(recordInfo.data))); } }
170171172173174175176177
writeEncoder(new JournalAddRecordTX(false, transactionID, recordInfo.id, recordInfo.userRecordType, new ByteArrayEncoding(recordInfo.data))); } }
145146147148149150151152153154155
} JournalInternalRecord controlRecord = new JournalAddRecord(true, 1, (byte)0, new ByteArrayEncoding(filesToRename.toByteBuffer() .array())); HornetQBuffer renameBuffer = HornetQBuffers.dynamicBuffer(filesToRename.writerIndex());