public final class JournalFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_BITS |
static int |
BLOCK_SIZE |
static int |
FH_CHECKPOINT_ADDR |
static int |
FH_CHECKPOINT_OFFSET |
static int |
FH_END |
static int |
FH_OFF_PAGE |
static int |
FH_PAGE_MASK |
static long |
FILE_DATA_OFFSET |
static long |
FILE_HEADER_OFFSET |
static int |
FILE_HEADER_SIZE |
static long |
H_CODE_MASK |
static long |
H_FIN |
static long |
H_INIT |
static int |
H_LENGTH_MASK |
static int |
H_PAGE |
static int |
H_PAGE_OFF |
static int |
HEADER_SIZE |
static int |
HOFF_CODE |
static int |
HOFF_LENGTH |
static int |
HOFF_MID |
static int |
HOFF_QID |
static int |
HOFF_XID |
static int |
MIN_BLOCK_COUNT |
static int |
MIN_FLIP_SIZE |
static int |
OP_CHECKPOINT |
static int |
OP_NULL |
static int |
PAD_MASK |
static int |
PAD_SIZE |
Constructor and Description |
---|
JournalFile(Path path,
JournalRecoverListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
checkpoint(long blockAddr,
int offset,
int length) |
void |
close() |
static boolean |
isSamePage(long addressA,
long addressB) |
void |
setMinFlipSize(long size) |
java.lang.String |
toString() |
void |
write(long code,
boolean isInit,
boolean isFin,
long xid,
long qid,
long mid,
byte[] buffer,
int offset,
int length,
JournalResult result) |
public static final int BLOCK_BITS
public static final int BLOCK_SIZE
public static final long FILE_HEADER_OFFSET
public static final int FILE_HEADER_SIZE
public static final int MIN_BLOCK_COUNT
public static final long FILE_DATA_OFFSET
public static final int FH_OFF_PAGE
public static final int FH_PAGE_MASK
public static final int FH_CHECKPOINT_ADDR
public static final int FH_CHECKPOINT_OFFSET
public static final int FH_END
public static final int MIN_FLIP_SIZE
public static final int PAD_SIZE
public static final int PAD_MASK
public static final int HOFF_LENGTH
public static final int HOFF_CODE
public static final int HOFF_QID
public static final int HOFF_MID
public static final int HOFF_XID
public static final int HEADER_SIZE
public static final int H_LENGTH_MASK
public static final int H_PAGE
public static final int H_PAGE_OFF
public static final long H_FIN
public static final long H_INIT
public static final long H_CODE_MASK
public static final int OP_NULL
public static final int OP_CHECKPOINT
public JournalFile(Path path, JournalRecoverListener listener)
public void setMinFlipSize(long size)
public static boolean isSamePage(long addressA, long addressB)
queueHeadAddress
- tailAddress
- public final void write(long code, boolean isInit, boolean isFin, long xid, long qid, long mid, byte[] buffer, int offset, int length, JournalResult result) throws java.io.IOException
java.io.IOException
public void checkpoint(long blockAddr, int offset, int length) throws java.io.IOException
java.io.IOException
public void close()
public java.lang.String toString()
toString
in class java.lang.Object