|
|||||||||
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) int |
getLogBufferSize()
|
(package private) LogBuffer |
getReadBufferByLsn(long lsn)
Find a buffer that contains the given LSN location. |
(package private) LogBuffer |
getWriteBuffer(int sizeNeeded,
boolean flippedFile)
Get a log buffer for writing sizeNeeded bytes. |
(package private) StatGroup |
loadStats(StatsConfig config)
|
(package private) void |
reset(DbConfigManager configManager)
Initialize the pool at construction time and when the cache is resized. |
(package private) void |
writeBufferToFile(int sizeNeeded,
boolean flushRequired)
Write the contents of the currentWriteBuffer to disk. |
(package private) void |
writeCompleted(long lsn,
boolean flushRequired,
boolean fsyncRequired)
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 |
---|
final int getLogBufferSize()
void reset(DbConfigManager configManager) throws DatabaseException
DatabaseException
LogBuffer getWriteBuffer(int sizeNeeded, boolean flippedFile) throws IOException, DatabaseException
IOException
DatabaseException
void writeBufferToFile(int sizeNeeded, boolean flushRequired) throws DatabaseException
sizeNeeded
- is the size of the next object we need to write to
the log. 0 if this is called on behalf of LogManager.flush() and
indicates that a flush is required (i.e. the write() must complete
and may not be queued before returning.flushRequired
- true if a write must finish prior to returning from
this call (i.e. this is a TxnWriteNoSync call). false if the write may
be queued and executed later by placing it in the Write Queue.
DatabaseException
void writeCompleted(long lsn, boolean flushRequired, boolean fsyncRequired) throws DatabaseException
DatabaseException
LogBuffer getReadBufferByLsn(long lsn) throws DatabaseException
DatabaseException
StatGroup loadStats(StatsConfig config) throws DatabaseException
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |