Host Class

Aerospike
Host name/port of database server.
Inheritance Hierarchy

SystemObject
  Aerospike.ClientHost

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public sealed class Host

The Host type exposes the following members.

Constructors

  NameDescription
Public methodHost(String, Int32)
Initialize host.
Public methodHost(String, String, Int32)
Initialize host.
Top
Methods

  NameDescription
Public methodEquals
Return if hosts are equal.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Return host address hash code.
(Overrides ObjectGetHashCode.)
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 methodStatic memberParseServiceHosts
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.

Public methodToString
Convert host name and port to string.
(Overrides ObjectToString.)
Top
Fields

  NameDescription
Public fieldname
Host name or IP address of database server.
Public fieldport
Port of database server.
Public fieldtlsName
TLS certificate name used for secure connections. The certificate must exist in your Trusted Root Certification repository. See: Trusted Root Certification
Top
See Also

Reference