class LogBufferPool
extends java.lang.Object
| Constructor and Description |
|---|
LogBufferPool(FileManager fileManager,
EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getLogBufferSize() |
(package private) LogBuffer |
getReadBuffer(long lsn)
Find a buffer that holds this LSN.
|
(package private) LogBuffer |
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.
|
LogBufferPool(FileManager fileManager, EnvironmentImpl envImpl) throws DatabaseException
DatabaseExceptionfinal int getLogBufferSize()
void reset(DbConfigManager configManager) throws DatabaseException
DatabaseExceptionLogBuffer getWriteBuffer(int sizeNeeded, boolean flippedFile) throws java.io.IOException, DatabaseException
java.io.IOExceptionDatabaseExceptionvoid writeBufferToFile(int sizeNeeded)
throws java.io.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().java.io.IOExceptionDatabaseExceptionvoid writeCompleted(long lsn,
boolean flushRequired)
throws DatabaseException,
java.io.IOException
DatabaseExceptionjava.io.IOExceptionLogBuffer getReadBuffer(long lsn) throws DatabaseException
DatabaseExceptionvoid loadStats(StatsConfig config, EnvironmentStats stats) throws DatabaseException
DatabaseExceptionCopyright (c) 2004,2008 Oracle. All rights reserved.