Class SniffingConnectionPool
Inheritance
SniffingConnectionPool
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
|
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
|
Edit this page
View Source
SniffingConnectionPool(IEnumerable<Uri>, bool, IDateTimeProvider)
Declaration
public SniffingConnectionPool(IEnumerable<Uri> uris, bool randomize = true, IDateTimeProvider dateTimeProvider = null)
Parameters
Properties
|
Edit this page
View Source
Nodes
Declaration
public override IReadOnlyCollection<Node> Nodes { get; }
Property Value
Overrides
|
Edit this page
View Source
SupportsPinging
Whether pinging is supported
Declaration
public override bool SupportsPinging { get; }
Property Value
Overrides
|
Edit this page
View Source
SupportsReseeding
Whether reseeding with new nodes is supported
Declaration
public override bool SupportsReseeding { get; }
Property Value
Overrides
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
Returns
Overrides
|
Edit this page
View Source
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
|
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
Overrides
Implements
Extension Methods