Interface IReplicationHandler
Handler for revisions obtained by the client.
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public interface IReplicationHandler
Properties
CurrentRevisionFiles
Returns the current revision version held by the handler.
Declaration
IDictionary<string, IList<RevisionFile>> CurrentRevisionFiles { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, IList<RevisionFile>> |
CurrentVersion
Returns the current revision files held by the handler.
Declaration
string CurrentVersion { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
RevisionReady(string, IDictionary<string, IList<RevisionFile>>, IDictionary<string, IList<string>>, IDictionary<string, Directory>)
Called when a new revision was obtained and is available (i.e. all needed files were successfully copied).
Declaration
void RevisionReady(string version, IDictionary<string, IList<RevisionFile>> revisionFiles, IDictionary<string, IList<string>> copiedFiles, IDictionary<string, Directory> sourceDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | version | The version of the IRevision that was copied |
| IDictionary<string, IList<RevisionFile>> | revisionFiles | The files contained by this IRevision |
| IDictionary<string, IList<string>> | copiedFiles | The files that were actually copied |
| IDictionary<string, Directory> | sourceDirectory | A mapping from a source of files to the Lucene.Net.Store.Directory they were copied into |
Exceptions
| Type | Condition |
|---|---|
| IOException |