com.sleepycat.je.log
Interface LogSource

All Known Implementing Classes:
FileHandleSource, FileSource, LogBuffer

interface LogSource

A class that implements LogSource can return portions of the log.


Method Summary
 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.
 void release()
          We're done with this log source.
 

Method Detail

release

void release()
             throws DatabaseException
We're done with this log source.

Throws:
DatabaseException

getBytes

ByteBuffer getBytes(long fileOffset)
                    throws IOException
Fill the destination byte array with bytes. The offset indicates the absolute log file position.

Throws:
IOException

getBytes

ByteBuffer getBytes(long fileOffset,
                    int numBytes)
                    throws IOException
Fill the destination byte array with the requested number of bytes. The offset indicates the absolute position in the log file.

Throws:
IOException


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.