Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PerSessionDirectoryFactory

    A ISourceDirectoryFactory which returns Lucene.Net.Store.FSDirectory under a dedicated session directory. When a session is over, the entire directory is deleted.

    Inheritance
    System.Object
    PerSessionDirectoryFactory
    Implements
    ISourceDirectoryFactory
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Replicator
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public class PerSessionDirectoryFactory : ISourceDirectoryFactory
    Remarks
    Note

    This API is experimental and might change in incompatible ways in the next release.

    Constructors

    | Improve this Doc View Source

    PerSessionDirectoryFactory(String)

    Constructor with the given sources mapping.

    Declaration
    public PerSessionDirectoryFactory(string workingDirectory)
    Parameters
    Type Name Description
    System.String workingDirectory

    Methods

    | Improve this Doc View Source

    CleanupSession(String)

    Declaration
    public virtual void CleanupSession(string sessionId)
    Parameters
    Type Name Description
    System.String sessionId
    | Improve this Doc View Source

    GetDirectory(String, String)

    Declaration
    public virtual Directory GetDirectory(string sessionId, string source)
    Parameters
    Type Name Description
    System.String sessionId
    System.String source
    Returns
    Type Description
    Lucene.Net.Store.Directory

    Implements

    ISourceDirectoryFactory
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.