public abstract class

FSLockFactory

extends LockFactory
java.lang.Object
   ↳ org.apache.lucene.store.LockFactory
     ↳ org.apache.lucene.store.FSLockFactory
Known Direct Subclasses

Class Overview

Base class for file system based locking implementation.

Summary

Fields
protected File lockDir Directory for the lock files.
[Expand]
Inherited Fields
From class org.apache.lucene.store.LockFactory
Public Constructors
FSLockFactory()
Public Methods
File getLockDir()
Retrieve the lock directory.
Protected Methods
final void setLockDir(File lockDir)
Set the lock directory.
[Expand]
Inherited Methods
From class org.apache.lucene.store.LockFactory
From class java.lang.Object

Fields

protected File lockDir

Directory for the lock files.

Public Constructors

public FSLockFactory ()

Public Methods

public File getLockDir ()

Retrieve the lock directory.

Protected Methods

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 itsself. Subclasses can also use this method to set the directory in the constructor.