Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface ISourceDirectoryFactory

    Resolves a session and source into a Lucene.Net.Store.Directory to use for copying the session files to.

    Namespace: Lucene.Net.Replicator
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public interface ISourceDirectoryFactory

    Methods

    CleanupSession(string)

    Called to denote that the replication actions for this session were finished and the directory is no longer needed.

    Declaration
    void CleanupSession(string sessionId)
    Parameters
    Type Name Description
    string sessionId
    Exceptions
    Type Condition
    IOException

    GetDirectory(string, string)

    Returns the Lucene.Net.Store.Directory to use for the given session and source. Implementations may e.g. return different directories for different sessions, or the same directory for all sessions. In that case, it is advised to clean the directory before it is used for a new session.

    Declaration
    Directory GetDirectory(string sessionId, string source)
    Parameters
    Type Name Description
    string sessionId
    string source
    Returns
    Type Description
    Directory
    Exceptions
    Type Condition
    IOException
    See Also
    CleanupSession(string)
    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.