Search Results for

    Show / Hide Table of Contents

    Class SniffingConnectionPool

    Inheritance
    object
    StaticConnectionPool
    SniffingConnectionPool
    StickySniffingConnectionPool
    Implements
    IConnectionPool
    IDisposable
    Inherited Members
    StaticConnectionPool.GlobalCursor
    StaticConnectionPool.LastUpdate
    StaticConnectionPool.MaxRetries
    StaticConnectionPool.SniffedOnStartup
    StaticConnectionPool.UsingSsl
    StaticConnectionPool.AliveNodes
    StaticConnectionPool.DateTimeProvider
    StaticConnectionPool.InternalNodes
    StaticConnectionPool.Random
    StaticConnectionPool.Randomize
    StaticConnectionPool.RetryInternalNodes(int, Action<AuditEvent, Node>)
    StaticConnectionPool.SelectAliveNodes(int, List<Node>, Action<AuditEvent, Node>)
    StaticConnectionPool.SortNodes(IEnumerable<Node>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Net
    Assembly: OpenSearch.Net.dll
    Syntax
    public class SniffingConnectionPool : StaticConnectionPool, IConnectionPool, IDisposable

    Constructors

    | Edit this page View Source

    SniffingConnectionPool(IEnumerable<Node>, bool, IDateTimeProvider)

    Declaration
    public SniffingConnectionPool(IEnumerable<Node> nodes, bool randomize = true, IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    IEnumerable<Node> nodes
    bool randomize
    IDateTimeProvider dateTimeProvider
    | Edit this page View Source

    SniffingConnectionPool(IEnumerable<Node>, Func<Node, float>, IDateTimeProvider)

    Declaration
    public SniffingConnectionPool(IEnumerable<Node> nodes, Func<Node, float> nodeScorer, IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    IEnumerable<Node> nodes
    Func<Node, float> nodeScorer
    IDateTimeProvider dateTimeProvider
    | Edit this page View Source

    SniffingConnectionPool(IEnumerable<Uri>, bool, IDateTimeProvider)

    Declaration
    public SniffingConnectionPool(IEnumerable<Uri> uris, bool randomize = true, IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    IEnumerable<Uri> uris
    bool randomize
    IDateTimeProvider dateTimeProvider

    Properties

    | Edit this page View Source

    Nodes

    Returns a read only view of all the nodes in the cluster, which might involve creating copies of nodes e.g if you are using SniffingConnectionPool. If you do not need an isolated copy of the nodes, please read CreateView(Action<AuditEvent, Node>) to completion

    Declaration
    public override IReadOnlyCollection<Node> Nodes { get; }
    Property Value
    Type Description
    IReadOnlyCollection<Node>
    Overrides
    StaticConnectionPool.Nodes
    | Edit this page View Source

    SupportsPinging

    Whether pinging is supported

    Declaration
    public override bool SupportsPinging { get; }
    Property Value
    Type Description
    bool
    Overrides
    StaticConnectionPool.SupportsPinging
    | Edit this page View Source

    SupportsReseeding

    Whether reseeding with new nodes is supported

    Declaration
    public override bool SupportsReseeding { get; }
    Property Value
    Type Description
    bool
    Overrides
    StaticConnectionPool.SupportsReseeding

    Methods

    | Edit this page View Source

    CreateView(Action<AuditEvent, Node>)

    Creates a view of all the live nodes with changing starting positions that wraps over on each call e.g Thread A might get 1,2,3,4,5 and thread B will get 2,3,4,5,1. if there are no live nodes yields a different dead node to try once

    Declaration
    public override IEnumerable<Node> CreateView(Action<AuditEvent, Node> audit = null)
    Parameters
    Type Name Description
    Action<AuditEvent, Node> audit
    Returns
    Type Description
    IEnumerable<Node>
    Overrides
    StaticConnectionPool.CreateView(Action<AuditEvent, Node>)
    | Edit this page View Source

    DisposeManagedResources()

    Declaration
    protected override void DisposeManagedResources()
    Overrides
    StaticConnectionPool.DisposeManagedResources()
    | Edit this page View Source

    Reseed(IEnumerable<Node>)

    Reseeds the nodes. The implementation is responsible for thread safety

    Declaration
    public override void Reseed(IEnumerable<Node> nodes)
    Parameters
    Type Name Description
    IEnumerable<Node> nodes
    Overrides
    StaticConnectionPool.Reseed(IEnumerable<Node>)

    Implements

    IConnectionPool
    IDisposable

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • SniffingConnectionPool(IEnumerable<Node>, bool, IDateTimeProvider)
      • SniffingConnectionPool(IEnumerable<Node>, Func<Node, float>, IDateTimeProvider)
      • SniffingConnectionPool(IEnumerable<Uri>, bool, IDateTimeProvider)
    • Properties
      • Nodes
      • SupportsPinging
      • SupportsReseeding
    • Methods
      • CreateView(Action<AuditEvent, Node>)
      • DisposeManagedResources()
      • Reseed(IEnumerable<Node>)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX