public class HostAddress extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static HostAddress |
from(String host,
int port) |
static HostAddress |
from(String host,
int port,
boolean primary) |
int |
hashCode() |
static List<HostAddress> |
parse(String spec,
HaMode haMode)
parse - parse server addresses from the URL fragment.
|
String |
toString() |
public static HostAddress from(String host, int port)
public static HostAddress from(String host, int port, boolean primary)
public static List<HostAddress> parse(String spec, HaMode haMode) throws SQLException
spec - list of endpoints in one of the forms 1 - host1,....,hostN:port (missing port
default to SingleStore default 3306 2 - host:port,...,host:porthaMode - High availability modeSQLException - for wrong specCopyright © 2022 SingleStore. All rights reserved.