com.sleepycat.je.log
Class FileHandle

java.lang.Object
  extended by com.sleepycat.je.log.FileHandle

 class FileHandle
extends Object

A FileHandle embodies a File and its accompanying latch.


Constructor Summary
FileHandle(RandomAccessFile file, String fileName, EnvironmentImpl env, boolean oldHeaderVersion)
           
 
Method Summary
(package private)  void close()
           
(package private)  RandomAccessFile getFile()
           
(package private)  boolean isOldHeaderVersion()
           
(package private)  void latch()
           
(package private)  boolean latchNoWait()
           
(package private)  void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandle

FileHandle(RandomAccessFile file,
           String fileName,
           EnvironmentImpl env,
           boolean oldHeaderVersion)
Method Detail

getFile

RandomAccessFile getFile()

isOldHeaderVersion

boolean isOldHeaderVersion()

latch

void latch()
     throws DatabaseException
Throws:
DatabaseException

latchNoWait

boolean latchNoWait()
              throws DatabaseException
Throws:
DatabaseException

release

void release()
       throws DatabaseException
Throws:
DatabaseException

close

void close()
     throws IOException
Throws:
IOException


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