Show / Hide Table of Contents

    Class HttpReplicator

    An HTTP implementation of IReplicator. Assumes the API supported by ReplicationService.

    Inheritance
    System.Object
    HttpClientBase
    HttpReplicator
    Implements
    IReplicator
    IDisposable
    Inherited Members
    HttpClientBase.DEFAULT_CONNECTION_TIMEOUT
    HttpClientBase.Url
    HttpClientBase.ConnectionTimeout
    HttpClientBase.EnsureOpen()
    HttpClientBase.VerifyStatus(HttpResponseMessage)
    HttpClientBase.ThrowKnownError(HttpResponseMessage)
    HttpClientBase.ExecutePost(String, Object, String[])
    HttpClientBase.ExecuteGet(String, String[])
    HttpClientBase.ResponseInputStream(HttpResponseMessage)
    HttpClientBase.ResponseInputStream(HttpResponseMessage, Boolean)
    HttpClientBase.IsDisposed
    HttpClientBase.DoAction<T>(HttpResponseMessage, Func<T>)
    HttpClientBase.DoAction<T>(HttpResponseMessage, Boolean, Func<T>)
    HttpClientBase.Dispose(Boolean)
    HttpClientBase.Dispose()
    Namespace: Lucene.Net.Replicator.Http
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public class HttpReplicator : HttpClientBase, IReplicator, IDisposable
    Remarks
    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    Constructors

    | Improve this Doc View Source

    HttpReplicator(String, HttpClient)

    Creates a new HttpReplicator with the given url and . HttpClientBase(String, HttpClient) for more details.

    Declaration
    public HttpReplicator(string url, HttpClient client)
    Parameters
    Type Name Description
    System.String url
    HttpClient client
    | Improve this Doc View Source

    HttpReplicator(String, HttpMessageHandler)

    Creates a new HttpReplicator with the given url. HttpClientBase(String, HttpMessageHandler) for more details.

    Declaration
    public HttpReplicator(string url, HttpMessageHandler messageHandler = null)
    Parameters
    Type Name Description
    System.String url
    HttpMessageHandler messageHandler
    | Improve this Doc View Source

    HttpReplicator(String, Int32, String, HttpMessageHandler)

    Creates a new HttpReplicator with the given host, port and path. HttpClientBase(String, Int32, String, HttpMessageHandler) for more details.

    Declaration
    public HttpReplicator(string host, int port, string path, HttpMessageHandler messageHandler = null)
    Parameters
    Type Name Description
    System.String host
    System.Int32 port
    System.String path
    HttpMessageHandler messageHandler

    Methods

    | Improve this Doc View Source

    CheckForUpdate(String)

    Checks for updates at the remote host.

    Declaration
    public virtual SessionToken CheckForUpdate(string currentVersion)
    Parameters
    Type Name Description
    System.String currentVersion
    Returns
    Type Description
    SessionToken
    | Improve this Doc View Source

    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.String sessionId
    System.String source
    System.String fileName
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    Publish(IRevision)

    Not supported.

    Declaration
    public virtual void Publish(IRevision revision)
    Parameters
    Type Name Description
    IRevision revision
    | Improve this Doc View Source

    Release(String)

    Releases a session obtained from the remote host.

    Declaration
    public virtual void Release(string sessionId)
    Parameters
    Type Name Description
    System.String sessionId

    Implements

    IReplicator
    IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)