com.sleepycat.je.log
Class FileHandleSource

java.lang.Object
  extended by com.sleepycat.je.log.FileSource
      extended by com.sleepycat.je.log.FileHandleSource
All Implemented Interfaces:
LogSource

 class FileHandleSource
extends FileSource

FileHandleSource is a file source built on top of a cached file handle.


Constructor Summary
FileHandleSource(FileHandle fileHandle, int readBufferSize, FileManager fileManager)
           
 
Method Summary
 int getLogVersion()
          Returns the log version of the log entries from this source.
 void release()
          We're done with this log source.
 
Methods inherited from class com.sleepycat.je.log.FileSource
getBytes, getBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandleSource

FileHandleSource(FileHandle fileHandle,
                 int readBufferSize,
                 FileManager fileManager)
Method Detail

release

public void release()
             throws DatabaseException
Description copied from interface: LogSource
We're done with this log source.

Specified by:
release in interface LogSource
Overrides:
release in class FileSource
Throws:
DatabaseException - in subclasses.
See Also:
LogSource.release()

getLogVersion

public int getLogVersion()
Description copied from interface: LogSource
Returns the log version of the log entries from this source.

Specified by:
getLogVersion in interface LogSource
Overrides:
getLogVersion in class FileSource


Copyright (c) 2004-2012 Oracle. All rights reserved.