Click or drag to resize

TopologyNodeDistanceFrom Method (String, String)

Gets the distance between a node in the topology and another node (which may or may not be in the topology).

Namespace:  Ookii.Jumbo.Topology
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public int DistanceFrom(
	string hostName,
	string rackId
)

Parameters

hostName
Type: SystemString
The host name of the other node. May be .
rackId
Type: SystemString
The rack ID of the other node. May be .

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