Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FSLockFactory

    Base class for file system based locking implementation.

    Inheritance
    object
    LockFactory
    FSLockFactory
    NativeFSLockFactory
    SimpleFSLockFactory
    Inherited Members
    LockFactory.m_lockPrefix
    LockFactory.LockPrefix
    LockFactory.MakeLock(string)
    LockFactory.ClearLock(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class FSLockFactory : LockFactory

    Fields

    m_lockDir

    Directory for the lock files.

    Declaration
    protected DirectoryInfo m_lockDir
    Field Value
    Type Description
    DirectoryInfo

    Properties

    LockDir

    Gets the lock directory.

    Declaration
    public DirectoryInfo LockDir { get; }
    Property Value
    Type Description
    DirectoryInfo

    Methods

    SetLockDir(DirectoryInfo)

    Set the lock directory. This property 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 property to set the directory in the constructor.

    Declaration
    protected void SetLockDir(DirectoryInfo lockDir)
    Parameters
    Type Name Description
    DirectoryInfo lockDir

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.