Host MethodsAerospike
The Host type exposes the following members.
Methods

  NameDescription
Public methodEquals
Return if hosts are equal.
(Overrides OnlineObject Equals(Object).)
Public methodGetHashCode
Return host address hash code.
(Overrides OnlineObject GetHashCode .)
Public methodStatic memberParseHosts
Parse hosts from string format: hostname1[:tlsname1][:port1],...

Hostname may also be an IP address in the following formats.

  • IPv4: xxx.xxx.xxx.xxx
  • IPv6: [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
  • IPv6: [xxxx::xxxx]

IPv6 addresses must be enclosed by brackets. tlsname and port are optional.

Public methodToString
Convert host name and port to string.
(Overrides OnlineObject ToString .)
Back to Top
See Also