Package com.aerospike.client
Class Host
java.lang.Object
com.aerospike.client.Host
Host name/port of database server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Host[]
parseHosts
(String str, int defaultPort) Parse command-line hosts from string format: hostname1[:tlsname1][:port1],...parseServiceHosts
(String str) Parse server service hosts from string format: hostname1:port1,...toString()
-
Field Details
-
name
Host name or IP address of database server. -
tlsName
TLS certificate name used for secure connections. -
port
public final int portPort of database server.
-
-
Constructor Details
-
Host
Initialize host. -
Host
Initialize host.
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
parseHosts
Parse command-line 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]
-
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]
-