Package org.apache.bookkeeper.bookie
Class Journal.LastLogMark
- java.lang.Object
-
- org.apache.bookkeeper.bookie.Journal.LastLogMark
-
- Enclosing class:
- Journal
public class Journal.LastLogMark extends java.lang.Object
Last Log Mark.
-
-
Constructor Summary
Constructors Constructor Description LastLogMark(long logId, long logPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogMark
getCurMark()
(package private) Journal.LastLogMark
markLog()
void
readLog()
Read last mark from lastMark file.(package private) void
rollLog(Journal.LastLogMark lastMark)
(package private) void
setCurLogMark(long logId, long logPosition)
java.lang.String
toString()
-
-
-
Method Detail
-
setCurLogMark
void setCurLogMark(long logId, long logPosition)
-
markLog
Journal.LastLogMark markLog()
-
getCurMark
public LogMark getCurMark()
-
rollLog
void rollLog(Journal.LastLogMark lastMark) throws LedgerDirsManager.NoWritableLedgerDirException
-
readLog
public void readLog()
Read last mark from lastMark file. The last mark should first be max journal log id, and then max log position in max journal log.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-