Class SimpleFSLockFactory
Implements LockFactory using
Special care needs to be taken if you change the locking implementation: First be certain that no writer is in fact writing to the index otherwise you can easily corrupt your index. Be sure to do the LockFactory change to all Lucene instances and clean up all leftover lock files before starting the new configuration for the first time. Different implementations can not work together!
If you suspect that this or any other LockFactory is not working properly in your environment, you can easily test it by using VerifyingLockFactory, LockVerifyServer and LockStressTest.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class SimpleFSLockFactory : FSLockFactory
Constructors
Name | Description |
---|---|
SimpleFSLockFactory() | Create a SimpleFSLockFactory instance, with |
SimpleFSLockFactory(DirectoryInfo) | Instantiate using the provided directory (as a |
SimpleFSLockFactory(String) | Instantiate using the provided directory name ( |
Methods
Name | Description |
---|---|
ClearLock(String) | |
MakeLock(String) |