edu.mayo.informatics.indexer.utility
Class WriteLockManager

java.lang.Object
  extended by edu.mayo.informatics.indexer.utility.WriteLockManager

public class WriteLockManager
extends java.lang.Object

This class is used for managing write locks between multiple JVMs running in the same enviroment. This makes sure that only one JVM is reading or writing from the MetaData at a time.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust

Method Summary
static WriteLockManager instance()
           
protected static WriteLockManager instance(java.io.File parentFolder)
           
protected  void lock()
           
protected  void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static WriteLockManager instance()

instance

protected static WriteLockManager instance(java.io.File parentFolder)

lock

protected void lock()
             throws InternalErrorException
Throws:
InternalErrorException

unlock

protected void unlock()
               throws InternalErrorException
Throws:
InternalErrorException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.