|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.registry.WriteLockManager
public class WriteLockManager
This class is used for managing write locks between multiple JVMs running in the same enviroment.
Method Summary | |
---|---|
void |
acquireLock(java.lang.String urn,
java.lang.String version)
Lock an individual terminology for loading, indexing, etc. |
void |
checkForRegistryUpdates()
See if another vm or thread has written a newer version of the registry file. |
int |
getLockCount()
Gets the lock count. |
protected static LgLoggerIF |
getLogger()
Gets the logger. |
static WriteLockManager |
instance()
Instance. |
static WriteLockManager |
instance(java.io.File registryFile)
Instance. |
void |
lockLockFile()
Lock lock file. |
void |
registryWasRevised()
Registry was revised. |
void |
releaseLock(java.lang.String urn,
java.lang.String version)
Unlock a particular coding scheme (finished loading, indexing, etc). |
void |
releaseLockFile()
Release lock file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected static LgLoggerIF getLogger()
public static WriteLockManager instance() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic static WriteLockManager instance(java.io.File registryFile) throws LBInvocationException
registryFile
- the registry file
LBInvocationException
- the LB invocation exceptionpublic void acquireLock(java.lang.String urn, java.lang.String version) throws LBInvocationException, LBParameterException
urn
- the urnversion
- the version
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void releaseLock(java.lang.String urn, java.lang.String version) throws LBInvocationException, LBParameterException
urn
- the urnversion
- the version
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void registryWasRevised() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic void checkForRegistryUpdates() throws LBInvocationException
UnexpectedInternalError
- * @throws LBInvocationException the LB invocation exception
LBInvocationException
public void lockLockFile() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic void releaseLockFile()
public int getLockCount()
|
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. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |