public abstract class AbstractJournalOperation extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE_COMMIT |
static byte |
TYPE_DATA_BLOCK_WRITE |
static byte |
TYPE_META_DATA_BLOCK_WRITE |
static byte |
TYPE_META_DATA_WRITE |
static byte |
TYPE_STORE_EXTEND |
| Constructor and Description |
|---|
AbstractJournalOperation(long transactionId,
byte type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTransactionId() |
byte |
getType() |
AbstractJournalOperation |
next() |
void |
setNext(AbstractJournalOperation next) |
int |
size()
The storage size for this operation
|
String |
toString() |
protected void |
writeTo(JournalFile journalFile)
Write the operation to the given journal file
|
public static final byte TYPE_DATA_BLOCK_WRITE
public static final byte TYPE_META_DATA_WRITE
public static final byte TYPE_META_DATA_BLOCK_WRITE
public static final byte TYPE_STORE_EXTEND
public static final byte TYPE_COMMIT
public AbstractJournalOperation(long transactionId,
byte type)
public long getTransactionId()
public final byte getType()
public int size()
protected void writeTo(JournalFile journalFile) throws JournalException
journalFile - teh journal fileJournalExceptionpublic AbstractJournalOperation next()
public void setNext(AbstractJournalOperation next)
Copyright © 2021. All rights reserved.