|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.LogBuffer
class LogBuffer
DbLogBuffers hold outgoing, newly written log entries.
Constructor Summary | |
---|---|
LogBuffer(ByteBuffer buffer,
long firstLsn)
|
|
LogBuffer(int capacity,
EnvironmentImpl env)
|
Method Summary | |
---|---|
(package private) boolean |
containsLsn(long lsn)
Support for reading a log entry out of a still-in-memory log |
ByteBuffer |
getBytes(long fileOffset)
Fill the destination byte array with bytes. |
ByteBuffer |
getBytes(long fileOffset,
int numBytes)
Fill the destination byte array with the requested number of bytes. |
(package private) int |
getCapacity()
|
(package private) ByteBuffer |
getDataBuffer()
|
(package private) long |
getFirstLsn()
Return first LSN held in this buffer. |
(package private) boolean |
getRewriteAllowed()
|
(package private) boolean |
hasRoom(int numBytes)
Check capacity of buffer. |
(package private) void |
registerLsn(long lsn)
This LSN has been written to the log. |
(package private) void |
reinit()
|
void |
release()
We're done with this log source. |
(package private) void |
setRewriteAllowed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
LogBuffer(int capacity, EnvironmentImpl env) throws DatabaseException
DatabaseException
LogBuffer(ByteBuffer buffer, long firstLsn) throws DatabaseException
DatabaseException
Method Detail |
---|
void reinit() throws DatabaseException
DatabaseException
long getFirstLsn()
void registerLsn(long lsn) throws DatabaseException
DatabaseException
boolean hasRoom(int numBytes)
ByteBuffer getDataBuffer()
int getCapacity()
boolean containsLsn(long lsn) throws DatabaseException
DatabaseException
public void release() throws DatabaseException
LogSource
release
in interface LogSource
DatabaseException
LogSource.release()
boolean getRewriteAllowed()
void setRewriteAllowed()
public ByteBuffer getBytes(long fileOffset)
LogSource
getBytes
in interface LogSource
LogSource.getBytes(long)
public ByteBuffer getBytes(long fileOffset, int numBytes)
LogSource
getBytes
in interface LogSource
LogSource.getBytes(long)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |