Class HttpReplicator
An HTTP implementation of IReplicator. Assumes the API supported by Replication
Inherited Members
Namespace: Lucene.Net.Replicator.Http
Assembly: Lucene.Net.Replicator.dll
Syntax
public class HttpReplicator : HttpClientBase, IReplicator, IDisposable
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
Constructors
| Improve this Doc View SourceHttpReplicator(String, Int32, String, HttpMessageHandler)
Creates a new Http
Declaration
public HttpReplicator(string host, int port, string path, HttpMessageHandler messageHandler = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
host | |
System. |
port | |
System. |
path | |
System. |
messageHandler |
HttpReplicator(String, HttpClient)
Creates a new Httpurl
and System.
Declaration
public HttpReplicator(string url, HttpClient client)
Parameters
Type | Name | Description |
---|---|---|
System. |
url | |
System. |
client |
HttpReplicator(String, HttpMessageHandler)
Creates a new Http
Declaration
public HttpReplicator(string url, HttpMessageHandler messageHandler = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
url | |
System. |
messageHandler |
Methods
| Improve this Doc View SourceCheckForUpdate(String)
Checks for updates at the remote host.
Declaration
public virtual SessionToken CheckForUpdate(string currentVersion)
Parameters
Type | Name | Description |
---|---|---|
System. |
currentVersion |
Returns
Type | Description |
---|---|
Session |
ObtainFile(String, String, String)
Obtains the given file from it's source at the remote host.
Declaration
public virtual Stream ObtainFile(string sessionId, string source, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System. |
sessionId | |
System. |
source | |
System. |
fileName |
Returns
Type | Description |
---|---|
System. |
Publish(IRevision)
Not supported.
Declaration
public virtual void Publish(IRevision revision)
Parameters
Type | Name | Description |
---|---|---|
IRevision | revision |
Exceptions
Type | Condition |
---|---|
System. |
this replicator implementation does not support remote publishing of revisions |
Release(String)
Releases a session obtained from the remote host.
Declaration
public virtual void Release(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System. |
sessionId |