Click or drag to resize

TopologyNodeDistanceFrom Method (TopologyNode)

Gets the distance between a node in the topology and another node.

Namespace:  Ookii.Jumbo.Topology
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public int DistanceFrom(
	TopologyNode node
)

Parameters

node
Type: Ookii.Jumbo.TopologyTopologyNode
The other node.

Return Value

Type: Int32
0 if the two nodes are identical, 1 if they are in the same rack, or 2 if they are in different racks.
See Also