public class WriteLockManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 fileLBInvocationException
- the LB invocation exceptionpublic void acquireLock(java.lang.String urn, java.lang.String version) throws LBInvocationException, LBParameterException
urn
- the urnversion
- the versionLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void releaseLock(java.lang.String urn, java.lang.String version) throws LBInvocationException, LBParameterException
urn
- the urnversion
- the versionLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void registryWasRevised() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic void checkForRegistryUpdates() throws LBInvocationException
UnexpectedInternalError
- * @throws LBInvocationException the LB invocation exceptionLBInvocationException
public void lockLockFile() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic void releaseLockFile()
public int getLockCount()