Host Class

Host name/port of database server.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public sealed class Host
Inheritance
Object    Host

Constructors

Host(String, Int32) Initialize host.
Host(String, String, Int32) Initialize host.

Methods

Equals Return if hosts are equal.
(Overrides ObjectEquals(Object))
GetHashCode Return host address hash code.
(Overrides ObjectGetHashCode)
ParseHosts 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.

ParseServiceHosts Parse server service hosts from string format: hostname1: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.

ToString Convert host name and port to string.
(Overrides ObjectToString)

Fields

name Host name or IP address of database server.
port Port of database server.
tlsName TLS certificate name used for secure connections. The certificate must exist in your Trusted Root Certification repository. See: Trusted Root Certification

See Also