Package com.aerospike.client
Class Host
java.lang.Object
com.aerospike.client.Host
public final class Host extends Object
Host name/port of database server.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static Host[]
parseHosts(String str, int defaultPort)
Parse command-line hosts from string format: hostname1[:tlsname1][:port1],...static List<Host>
parseServiceHosts(String str)
Parse server service hosts from string format: hostname1:port1,...String
toString()
-
Field Details
-
Constructor Details
-
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]
-