Show / Hide Table of Contents

    Interface ISourceDirectoryFactory

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

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

    Methods

    | Improve this Doc View Source

    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
    System.String sessionId
    | Improve this Doc View Source

    GetDirectory(String, String)

    Returns the 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
    System.String sessionId
    System.String source
    Returns
    Type Description
    Directory
    See Also
    CleanupSession(String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)