Package org.apache.bookkeeper.bookie
Class LogMark
- java.lang.Object
-
- org.apache.bookkeeper.bookie.LogMark
-
public class LogMark extends java.lang.Object
Journal stream position.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
logFileId
(package private) long
logFileOffset
static LogMark
MAX_VALUE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(LogMark other)
long
getLogFileId()
long
getLogFileOffset()
void
readLogMark(java.nio.ByteBuffer bb)
void
setLogMark(long logFileId, long logFileOffset)
java.lang.String
toString()
void
writeLogMark(java.nio.ByteBuffer bb)
-
-
-
Field Detail
-
logFileId
long logFileId
-
logFileOffset
long logFileOffset
-
MAX_VALUE
public static final LogMark MAX_VALUE
-
-
Constructor Detail
-
LogMark
public LogMark()
-
LogMark
public LogMark(LogMark other)
-
LogMark
public LogMark(long logFileId, long logFileOffset)
-
-
Method Detail
-
getLogFileId
public long getLogFileId()
-
getLogFileOffset
public long getLogFileOffset()
-
readLogMark
public void readLogMark(java.nio.ByteBuffer bb)
-
writeLogMark
public void writeLogMark(java.nio.ByteBuffer bb)
-
setLogMark
public void setLogMark(long logFileId, long logFileOffset)
-
compare
public int compare(LogMark other)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-