Class SimpleFSLockFactory
Implements Lock
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 Lock
If you suspect that this or any other Lock
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public class SimpleFSLockFactory : FSLockFactory
Constructors
| Improve this Doc View SourceSimpleFSLockFactory()
Create a Simplenull
(unset)
lock directory. When you pass this factory to a FSDirectory
subclass, the lock directory is automatically set to the
directory itself. Be sure to create one instance for each directory
your create!
Declaration
public SimpleFSLockFactory()
SimpleFSLockFactory(DirectoryInfo)
Instantiate using the provided directory (as a
Declaration
public SimpleFSLockFactory(DirectoryInfo lockDir)
Parameters
Type | Name | Description |
---|---|---|
Directory |
lockDir | where lock files should be created. |
SimpleFSLockFactory(String)
Instantiate using the provided directory name (
Declaration
public SimpleFSLockFactory(string lockDirName)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockDirName | where lock files should be created. |
Methods
| Improve this Doc View SourceClearLock(String)
Declaration
public override void ClearLock(string lockName)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockName |
Overrides
| Improve this Doc View SourceMakeLock(String)
Declaration
public override Lock MakeLock(string lockName)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockName |
Returns
Type | Description |
---|---|
Lock |