org.neodatis.odb.impl.core.layers.layer3.engine
Class FileMutex

java.lang.Object
  extended by org.neodatis.odb.impl.core.layers.layer3.engine.FileMutex

public class FileMutex
extends java.lang.Object

A mutex to logically lock ODB database file

Author:
osmadja

Method Summary
static FileMutex getInstance()
           
 void lockFile(java.lang.String fileName)
           
 boolean openFile(java.lang.String fileName)
           
 void releaseFile(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileMutex getInstance()

releaseFile

public void releaseFile(java.lang.String fileName)

lockFile

public void lockFile(java.lang.String fileName)

openFile

public boolean openFile(java.lang.String fileName)