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
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
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Constructors
| Improve this Doc View SourcePerSessionDirectoryFactory(String)
Constructor with the given sources mapping.
Declaration
public PerSessionDirectoryFactory(string workingDirectory)
Parameters
Type | Name | Description |
---|---|---|
System.String | workingDirectory |
Methods
| Improve this Doc View SourceCleanupSession(String)
Declaration
public virtual void CleanupSession(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId |
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 |