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 |
protected File |
lockDir
Directory for the lock files. |
lockDir
protected File lockDir
- Directory for the lock files.
FSLockFactory
public FSLockFactory()
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 by
FSDirectory
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.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.