Class Node
- Namespace
- Elasticsearch.Net
- Assembly
- Elasticsearch.Net.dll
public class Node : IEquatable<Node>
- Inheritance
-
Node
- Implements
- Inherited Members
Constructors
Node(Uri)
public Node(Uri uri)
Parameters
uri
Uri
Properties
ClientNode
public bool ClientNode { get; }
Property Value
DeadUntil
When marked dead this reflects the date that the node has to be taken out of rotation till
public DateTime DeadUntil { get; }
Property Value
FailedAttempts
The number of failed attempts trying to use this node, resets when a node is marked alive
public int FailedAttempts { get; }
Property Value
HoldsData
Indicates whether this node holds data, defaults to true when unknown/unspecified
public bool HoldsData { get; set; }
Property Value
HttpEnabled
Whether HTTP is enabled on the node or not
public bool HttpEnabled { get; set; }
Property Value
Id
The id of the node, defaults to null when unknown/unspecified
public string Id { get; set; }
Property Value
IngestEnabled
Indicates whether this node is allowed to run ingest pipelines, defaults to true when unknown/unspecified
public bool IngestEnabled { get; set; }
Property Value
IsAlive
public virtual bool IsAlive { get; }
Property Value
IsResurrected
When set this signals the transport that a ping before first usage would be wise
public bool IsResurrected { get; set; }
Property Value
MasterEligible
Indicates whether this node is master eligible, defaults to true when unknown/unspecified
public bool MasterEligible { get; set; }
Property Value
MasterOnlyNode
public bool MasterOnlyNode { get; }
Property Value
Name
The name of the node, defaults to null when unknown/unspecified
public string Name { get; set; }
Property Value
Settings
public IReadOnlyDictionary<string, object> Settings { get; set; }
Property Value
Uri
public Uri Uri { get; }
Property Value
- Uri
Methods
Clone()
public Node Clone()
Returns
CreatePath(string)
public Uri CreatePath(string path)
Parameters
path
string
Returns
- Uri
Equals(Node)
public bool Equals(Node other)
Parameters
other
Node
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
MarkAlive()
public void MarkAlive()
MarkDead(DateTime)
public void MarkDead(DateTime untill)
Parameters
untill
DateTime
Operators
operator ==(Node, Node)
public static bool operator ==(Node left, Node right)
Parameters
Returns
implicit operator Node(Uri)
public static implicit operator Node(Uri uri)
Parameters
uri
Uri
Returns
operator !=(Node, Node)
public static bool operator !=(Node left, Node right)