| Constructor and Description |
|---|
LogBuffer(java.nio.ByteBuffer buffer,
long firstLsn) |
LogBuffer(int capacity,
EnvironmentImpl env) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
containsLsn(long lsn)
Support for reading a log entry out of a still-in-memory log
|
java.nio.ByteBuffer |
getBytes(long fileOffset)
Fill the destination byte array with bytes.
|
java.nio.ByteBuffer |
getBytes(long fileOffset,
int numBytes)
Fill the destination byte array with the requested number of bytes.
|
(package private) int |
getCapacity() |
(package private) java.nio.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.
|
void |
latchForWrite()
When modifying the buffer, acquire the readLatch.
|
(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() |
LogBuffer(int capacity,
EnvironmentImpl env)
throws DatabaseException
DatabaseExceptionLogBuffer(java.nio.ByteBuffer buffer,
long firstLsn)
throws DatabaseException
DatabaseExceptionvoid reinit()
throws DatabaseException
DatabaseExceptionlong getFirstLsn()
void registerLsn(long lsn)
throws DatabaseException
DatabaseExceptionboolean hasRoom(int numBytes)
java.nio.ByteBuffer getDataBuffer()
int getCapacity()
boolean containsLsn(long lsn)
throws DatabaseException
DatabaseExceptionpublic void latchForWrite()
throws DatabaseException
DatabaseExceptionpublic void release()
throws DatabaseException
LogSourcerelease in interface LogSourceDatabaseExceptionLogSource.release()boolean getRewriteAllowed()
void setRewriteAllowed()
public java.nio.ByteBuffer getBytes(long fileOffset)
LogSourcegetBytes in interface LogSourceLogSource.getBytes(long)public java.nio.ByteBuffer getBytes(long fileOffset,
int numBytes)
LogSourcegetBytes in interface LogSourceLogSource.getBytes(long)Copyright (c) 2004,2008 Oracle. All rights reserved.