Table of Contents

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

bool

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

DateTime

FailedAttempts

The number of failed attempts trying to use this node, resets when a node is marked alive

public int FailedAttempts { get; }

Property Value

int

HoldsData

Indicates whether this node holds data, defaults to true when unknown/unspecified

public bool HoldsData { get; set; }

Property Value

bool

HttpEnabled

Whether HTTP is enabled on the node or not

public bool HttpEnabled { get; set; }

Property Value

bool

Id

The id of the node, defaults to null when unknown/unspecified

public string Id { get; set; }

Property Value

string

IngestEnabled

Indicates whether this node is allowed to run ingest pipelines, defaults to true when unknown/unspecified

public bool IngestEnabled { get; set; }

Property Value

bool

IsAlive

public virtual bool IsAlive { get; }

Property Value

bool

IsResurrected

When set this signals the transport that a ping before first usage would be wise

public bool IsResurrected { get; set; }

Property Value

bool

MasterEligible

Indicates whether this node is master eligible, defaults to true when unknown/unspecified

public bool MasterEligible { get; set; }

Property Value

bool

MasterOnlyNode

public bool MasterOnlyNode { get; }

Property Value

bool

Name

The name of the node, defaults to null when unknown/unspecified

public string Name { get; set; }

Property Value

string

Settings

public IReadOnlyDictionary<string, object> Settings { get; set; }

Property Value

IReadOnlyDictionary<string, object>

Uri

public Uri Uri { get; }

Property Value

Uri

Methods

Clone()

public Node Clone()

Returns

Node

CreatePath(string)

public Uri CreatePath(string path)

Parameters

path string

Returns

Uri

Equals(Node)

public bool Equals(Node other)

Parameters

other Node

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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

left Node
right Node

Returns

bool

implicit operator Node(Uri)

public static implicit operator Node(Uri uri)

Parameters

uri Uri

Returns

Node

operator !=(Node, Node)

public static bool operator !=(Node left, Node right)

Parameters

left Node
right Node

Returns

bool