public class HostAddress extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
forceThreadsConnected(long threadsConnected,
long threadConnectedTimeout) |
static HostAddress |
from(String host,
int port) |
Long |
getThreadConnectedTimeout() |
Long |
getThreadsConnected() |
int |
hashCode() |
static List<HostAddress> |
parse(String spec,
HaMode haMode)
parse - parse server addresses from the URL fragment.
|
void |
setThreadsConnected(long threadsConnected) |
String |
toString() |
public final String host
public int port
public static HostAddress from(String host, int port)
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 specpublic Long getThreadsConnected()
public void setThreadsConnected(long threadsConnected)
public void forceThreadsConnected(long threadsConnected,
long threadConnectedTimeout)
public Long getThreadConnectedTimeout()
Copyright © 2025 SingleStore. All rights reserved.