Package org.apache.lucene.store
Class FSLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
org.apache.lucene.store.FSLockFactory
- Direct Known Subclasses:
NativeFSLockFactory
,SimpleFSLockFactory
Base class for file system based locking implementation.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the lock directory.protected final void
setLockDir
(File lockDir) Set the lock directory.toString()
Methods inherited from class org.apache.lucene.store.LockFactory
clearLock, getLockPrefix, makeLock, setLockPrefix
-
Field Details
-
lockDir
Directory for the lock files.
-
-
Constructor Details
-
FSLockFactory
public FSLockFactory()
-
-
Method Details
-
setLockDir
Set the lock directory. This method can be only called once to initialize the lock directory. It is used byFSDirectory
to set the lock directory to itself. Subclasses can also use this method to set the directory in the constructor. -
getLockDir
Retrieve the lock directory. -
toString
-