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
EndPoint
Gets the endpoint of the current node
public EndPoint EndPoint { get; }
Property Value
IsConnected
Gets the node's connection status
public bool IsConnected { get; }
Property Value
IsMyself
Gets whether this is the node which responded to the CLUSTER NODES request
public bool IsMyself { get; }
Property Value
IsNoAddr
Gets whether this node is flagged as noaddr
public bool IsNoAddr { get; }
Property Value
IsSlave
Gets whether this node is a slave
public bool IsSlave { get; }
Property Value
NodeId
Gets the unique node-id of the current node
public string NodeId { get; }
Property Value
Parent
Gets the parent node of the current node
public ClusterNode Parent { get; }
Property Value
ParentNodeId
Gets the unique node-id of the parent of the current node
public string ParentNodeId { get; }
Property Value
Raw
The configuration as reported by the server
public string Raw { get; }
Property Value
Slots
The slots owned by this server
public IList<SlotRange> Slots { get; }
Property Value
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
Equals(ClusterNode)
Indicates whether two ClusterNode instances are equivalent
public bool Equals(ClusterNode node)
Parameters
node
ClusterNode
Returns
Equals(object)
See Object.Equals
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
See object.GetHashCode()
public override int GetHashCode()
Returns
ToString()
See Object.ToString()
public override string ToString()