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
public abstract class FSLockFactory extends LockFactory
Base class for file system based locking implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected File
lockDir
Directory for the lock files.-
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
-
-
Constructor Summary
Constructors Constructor Description FSLockFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getLockDir()
Retrieve the lock directory.protected void
setLockDir(File lockDir)
Set the lock directory.String
toString()
-
Methods inherited from class org.apache.lucene.store.LockFactory
clearLock, getLockPrefix, makeLock, setLockPrefix
-
-
-
-
Field Detail
-
lockDir
protected File lockDir
Directory for the lock files.
-
-
Method Detail
-
setLockDir
protected final void setLockDir(File lockDir)
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
public File getLockDir()
Retrieve the lock directory.
-
-