Skip to content

NodeAddress

Defined in: src/cluster/NodeAddress.ts:5

A node in the cluster is identified by host + port + system name. Stringified as system@host:port.

new NodeAddress(systemName, host, port): NodeAddress

Defined in: src/cluster/NodeAddress.ts:6

string

string

number

NodeAddress

readonly host: string

Defined in: src/cluster/NodeAddress.ts:8


readonly port: number

Defined in: src/cluster/NodeAddress.ts:9


readonly systemName: string

Defined in: src/cluster/NodeAddress.ts:7

compareTo(other): number

Defined in: src/cluster/NodeAddress.ts:21

Ordering used by the leader election: lexicographic on the string form.

NodeAddress

number


equals(other): boolean

Defined in: src/cluster/NodeAddress.ts:14

NodeAddress

boolean


toJSON(): NodeAddressData

Defined in: src/cluster/NodeAddress.ts:25

NodeAddressData


toString(): string

Defined in: src/cluster/NodeAddress.ts:12

string


static fromJSON(data): NodeAddress

Defined in: src/cluster/NodeAddress.ts:29

NodeAddressData

NodeAddress


static parse(s): NodeAddress

Defined in: src/cluster/NodeAddress.ts:34

Parse a string of the form system@host:port.

string

NodeAddress