public final class Host extends Object
Modifier and Type | Field and Description |
---|---|
String |
name
Host name or IP address of database server.
|
int |
port
Port of database server.
|
String |
tlsName
TLS certificate name used for secure connections.
|
Constructor and Description |
---|
Host(String name,
int port)
Initialize host.
|
Host(String name,
String tlsName,
int port)
Initialize host.
|
Modifier and Type | Method and 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() |
public final String name
public final String tlsName
public final int port
public Host(String name, int port)
public static Host[] parseHosts(String str, int defaultPort)
Hostname may also be an IP address in the following formats.
public static List<Host> parseServiceHosts(String str)
Hostname may also be an IP address in the following formats.
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.