public class SimpleFSLockFactory extends LockFactory
Implements {@link LockFactory} using {@link File#createNewFile()}. This is
currently the default LockFactory used for {@link FSDirectory} if no
LockFactory instance is otherwise provided.
Note that there are known problems with this locking implementation on NFS.
see
LockFactory
Fields Summary
private File
lockDir
Directory specified by org.apache.lucene.lockDir
system property. If that is not set, then java.io.tmpdir
system property is used.
Constructors Summary
SimpleFSLockFactory()
Create a SimpleFSLockFactory instance, with null (unset)
lock directory. This is package-private and is only
used by FSDirectory when creating this LockFactory via
the System property
org.apache.lucene.store.FSDirectoryLockFactoryClass.
Set the lock directory. This is package-private and is
only used externally by FSDirectory when creating this
LockFactory via the System property
org.apache.lucene.store.FSDirectoryLockFactoryClass.