public final class StoreExtendOperation extends AbstractJournalOperation
TYPE_COMMIT, TYPE_DATA_BLOCK_WRITE, TYPE_META_DATA_BLOCK_WRITE, TYPE_META_DATA_WRITE, TYPE_STORE_EXTEND| Constructor and Description |
|---|
StoreExtendOperation(long transactionId,
int blockSize,
int oldBlockCount,
int newBlockCount)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
extend(RandomAccessFile allocationTableRandomAccessFile,
RandomAccessFile dataRandomAccessFile) |
int |
getBlockSize() |
int |
getNewBlockCount() |
int |
getOldBlockCount() |
int |
size()
The storage size for this operation
|
String |
toString() |
protected void |
writeTo(JournalFile journalFile)
Write the operation to the given journal file
|
getTransactionId, getType, next, setNextpublic StoreExtendOperation(long transactionId,
int blockSize,
int oldBlockCount,
int newBlockCount)
public int getBlockSize()
public int getOldBlockCount()
public int getNewBlockCount()
public int size()
AbstractJournalOperationsize in class AbstractJournalOperationprotected void writeTo(JournalFile journalFile) throws JournalException
AbstractJournalOperationwriteTo in class AbstractJournalOperationjournalFile - teh journal fileJournalExceptionprotected int extend(RandomAccessFile allocationTableRandomAccessFile, RandomAccessFile dataRandomAccessFile) throws JournalException
JournalExceptionpublic String toString()
toString in class AbstractJournalOperationCopyright © 2019. All rights reserved.