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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NodeAddress(
systemName,host,port):NodeAddress
Defined in: src/cluster/NodeAddress.ts:6
Parameters
Section titled “Parameters”systemName
Section titled “systemName”string
string
number
Returns
Section titled “Returns”NodeAddress
Properties
Section titled “Properties”
readonlyhost:string
Defined in: src/cluster/NodeAddress.ts:8
readonlyport:number
Defined in: src/cluster/NodeAddress.ts:9
systemName
Section titled “systemName”
readonlysystemName:string
Defined in: src/cluster/NodeAddress.ts:7
Methods
Section titled “Methods”compareTo()
Section titled “compareTo()”compareTo(
other):number
Defined in: src/cluster/NodeAddress.ts:21
Ordering used by the leader election: lexicographic on the string form.
Parameters
Section titled “Parameters”NodeAddress
Returns
Section titled “Returns”number
equals()
Section titled “equals()”equals(
other):boolean
Defined in: src/cluster/NodeAddress.ts:14
Parameters
Section titled “Parameters”NodeAddress
Returns
Section titled “Returns”boolean
toJSON()
Section titled “toJSON()”toJSON():
NodeAddressData
Defined in: src/cluster/NodeAddress.ts:25
Returns
Section titled “Returns”toString()
Section titled “toString()”toString():
string
Defined in: src/cluster/NodeAddress.ts:12
Returns
Section titled “Returns”string
fromJSON()
Section titled “fromJSON()”
staticfromJSON(data):NodeAddress
Defined in: src/cluster/NodeAddress.ts:29
Parameters
Section titled “Parameters”Returns
Section titled “Returns”NodeAddress
parse()
Section titled “parse()”
staticparse(s):NodeAddress
Defined in: src/cluster/NodeAddress.ts:34
Parse a string of the form system@host:port.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”NodeAddress