Class ExamineReplicator
Used to replicate an index to a destination directory
public class ExamineReplicator : IDisposable
- Inheritance
-
ExamineReplicator
- Implements
- Inherited Members
Remarks
The destination directory must not have any active writers open to it.
Constructors
ExamineReplicator(ILoggerFactory, LuceneIndex, Directory, DirectoryInfo)
Creates an instance of ExamineReplicator
public ExamineReplicator(ILoggerFactory loggerFactory, LuceneIndex sourceIndex, Directory destinationDirectory, DirectoryInfo tempStorage)
Parameters
loggerFactory
ILoggerFactoryThe logger factory
sourceIndex
LuceneIndexThe source index
destinationDirectory
DirectoryThe destination directory
tempStorage
DirectoryInfoThe temp storage directory info
Methods
Dispose()
Disposes the instance
public void Dispose()
Dispose(bool)
Disposes the instance
protected virtual void Dispose(bool disposing)
Parameters
disposing
boolIf the call is coming from Dispose
ReplicateIndex()
Will sync from the active index to the destination directory
public void ReplicateIndex()
StartIndexReplicationOnSchedule(int)
Starts index replication
public void StartIndexReplicationOnSchedule(int milliseconds)
Parameters
milliseconds
int