Show / Hide Table of Contents

    Class PerSessionDirectoryFactory

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

    Inheritance
    System.Object
    PerSessionDirectoryFactory
    Implements
    ISourceDirectoryFactory
    Namespace: Lucene.Net.Replicator
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public class PerSessionDirectoryFactory : object, ISourceDirectoryFactory
    Remarks
    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    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
    Directory

    Implements

    ISourceDirectoryFactory
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)