primary
primary node
boolean
void
forceThreadsConnected(long threadsConnected,
long threadConnectedTimeout)
static HostAddress
static HostAddress
static HostAddress
static HostAddress
private static int
int
hashCode()
static HostAddress
localSocket(String localSocket)
static List<HostAddress>
private static HostAddress
parseParameterHostAddress(String str,
HaMode haMode,
boolean first)
private static HostAddress
parseSimpleHostAddress(String str,
HaMode haMode,
boolean first)
static HostAddress
void
setThreadsConnected(long threadsConnected)
toString()
withLocalSocket(String localSocket)
withPort(int port)
host
- host (DNS/IP)port
- portpipe
- windows pipe pathlocalSocket
- unix socket pathhost
- host (DNS/IP)port
- portprimary
- is primaryhost
- host (DNS/IP)port
- portsslMode
- ssl modehost
- host (DNS/IP)port
- portprimary
- is primarysslMode
- ssl modespec
- list of endpoints in one of the forms 1 - host1,....,hostN:port (missing port
default to MariaDB default 3306 2 - host:port,...,host:porthaMode
- High availability modeSQLException
- for wrong specstr
- string to parsehaMode
- current High-Availability modefirst
- is it the first hostSQLException
- if port is not IntegerportString
- port in string valueSQLException
- in case of failing to parse port.SQLException