|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.LogBufferPool
class LogBufferPool
LogBufferPool keeps a set of log buffers.
Constructor Summary | |
---|---|
LogBufferPool(FileManager fileManager,
EnvironmentImpl envImpl)
|
Method Summary | |
---|---|
(package private) LogBuffer |
getReadBuffer(long lsn)
Find a buffer that holds this LSN. |
(package private) ByteBuffer |
getWriteBuffer(int sizeNeeded,
boolean flippedFile)
Get a log buffer for writing sizeNeeded bytes. |
(package private) void |
loadStats(StatsConfig config,
EnvironmentStats stats)
|
(package private) void |
reset(DbConfigManager configManager)
Initialize the pool at construction time and when the cache is resized. |
(package private) void |
writeBufferToFile(int sizeNeeded)
Write the contents of the currentWriteBuffer to disk. |
(package private) void |
writeCompleted(long lsn,
boolean flushRequired)
A loggable object has been freshly marshalled into the write log buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
LogBufferPool(FileManager fileManager, EnvironmentImpl envImpl) throws DatabaseException
DatabaseException
Method Detail |
---|
void reset(DbConfigManager configManager) throws DatabaseException
DatabaseException
ByteBuffer getWriteBuffer(int sizeNeeded, boolean flippedFile) throws IOException, DatabaseException
IOException
DatabaseException
void writeBufferToFile(int sizeNeeded) throws IOException, DatabaseException
sizeNeeded
- is the size of the next object we need to write to
the log. May be 0 if this is called on behalf of LogManager.flush().
IOException
DatabaseException
void writeCompleted(long lsn, boolean flushRequired) throws DatabaseException, IOException
DatabaseException
IOException
LogBuffer getReadBuffer(long lsn) throws DatabaseException
DatabaseException
void loadStats(StatsConfig config, EnvironmentStats stats) throws DatabaseException
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |