Class StoreExtendOperation
- java.lang.Object
-
- net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
-
- net.timewalker.ffmq4.storage.data.impl.journal.StoreExtendOperation
-
public final class StoreExtendOperation extends AbstractJournalOperation
StoreExtendOperation
-
-
Field Summary
-
Fields inherited from class net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
TYPE_COMMIT, TYPE_DATA_BLOCK_WRITE, TYPE_META_DATA_BLOCK_WRITE, TYPE_META_DATA_WRITE, TYPE_STORE_EXTEND
-
-
Constructor Summary
Constructors Constructor Description StoreExtendOperation(long transactionId, int blockSize, int oldBlockCount, int newBlockCount)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intextend(RandomAccessFile allocationTableRandomAccessFile, RandomAccessFile dataRandomAccessFile)intgetBlockSize()intgetNewBlockCount()intgetOldBlockCount()intsize()The storage size for this operationStringtoString()protected voidwriteTo(JournalFile journalFile)Write the operation to the given journal file-
Methods inherited from class net.timewalker.ffmq4.storage.data.impl.journal.AbstractJournalOperation
getTransactionId, getType, next, setNext
-
-
-
-
Method Detail
-
getBlockSize
public int getBlockSize()
- Returns:
- the blockSize
-
getOldBlockCount
public int getOldBlockCount()
- Returns:
- the oldBlockCount
-
getNewBlockCount
public int getNewBlockCount()
- Returns:
- the newBlockCount
-
size
public int size()
Description copied from class:AbstractJournalOperationThe storage size for this operation- Overrides:
sizein classAbstractJournalOperation
-
writeTo
protected void writeTo(JournalFile journalFile) throws JournalException
Description copied from class:AbstractJournalOperationWrite the operation to the given journal file- Overrides:
writeToin classAbstractJournalOperation- Parameters:
journalFile- teh journal file- Throws:
JournalException
-
extend
protected int extend(RandomAccessFile allocationTableRandomAccessFile, RandomAccessFile dataRandomAccessFile) throws JournalException
- Throws:
JournalException
-
toString
public String toString()
- Overrides:
toStringin classAbstractJournalOperation
-
-