Table of Contents

Class ClusterNode

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Represents the configuration of a single node in a cluster configuration

public sealed class ClusterNode : IEquatable<ClusterNode>, IComparable<ClusterNode>, IComparable
Inheritance
ClusterNode
Implements
Inherited Members

Properties

Children

Gets all child nodes of the current node

public IList<ClusterNode> Children { get; }

Property Value

IList<ClusterNode>

EndPoint

Gets the endpoint of the current node

public EndPoint EndPoint { get; }

Property Value

EndPoint

IsConnected

Gets the node's connection status

public bool IsConnected { get; }

Property Value

bool

IsMyself

Gets whether this is the node which responded to the CLUSTER NODES request

public bool IsMyself { get; }

Property Value

bool

IsNoAddr

Gets whether this node is flagged as noaddr

public bool IsNoAddr { get; }

Property Value

bool

IsSlave

Gets whether this node is a slave

public bool IsSlave { get; }

Property Value

bool

NodeId

Gets the unique node-id of the current node

public string NodeId { get; }

Property Value

string

Parent

Gets the parent node of the current node

public ClusterNode Parent { get; }

Property Value

ClusterNode

ParentNodeId

Gets the unique node-id of the parent of the current node

public string ParentNodeId { get; }

Property Value

string

Raw

The configuration as reported by the server

public string Raw { get; }

Property Value

string

Slots

The slots owned by this server

public IList<SlotRange> Slots { get; }

Property Value

IList<SlotRange>

Methods

CompareTo(ClusterNode)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(ClusterNode other)

Parameters

other ClusterNode

Returns

int

Equals(ClusterNode)

Indicates whether two ClusterNode instances are equivalent

public bool Equals(ClusterNode node)

Parameters

node ClusterNode

Returns

bool

Equals(object)

See Object.Equals

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See object.GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

See Object.ToString()

public override string ToString()

Returns

string