Class: Topology

Topology

new Topology()

Server topology information.
Since:
  • 0.3
Source:

Methods

findOwners(k) → {Array.<ServerAddress>}

Find the list of server addresses that are owners for a given key.
Parameters:
Name Type Description
k String Key to find owners for.
Since:
  • 0.3
Source:
Returns:
An array of server addresses that are owners for the given key.
Type
Array.<ServerAddress>

getMembers() → {Array.<ServerAddress>}

Get the list of servers that the client is currently connected to.
Since:
  • 0.3
Source:
Returns:
An array of server addresses.
Type
Array.<ServerAddress>

getTopologyId() → {Number}

Get the server topology identifier.
Since:
  • 0.3
Source:
Returns:
Topology identifier.
Type
Number