Package | Description |
---|---|
org.mariadb.jdbc | |
org.mariadb.jdbc.internal.com.send | |
org.mariadb.jdbc.internal.failover | |
org.mariadb.jdbc.internal.failover.impl | |
org.mariadb.jdbc.internal.protocol |
Modifier and Type | Method and Description |
---|---|
List<HostAddress> |
UrlParser.getHostAddresses() |
static List<HostAddress> |
HostAddress.parse(String spec,
HaMode haMode)
parse - parse server addresses from the URL fragment.
|
Modifier and Type | Method and Description |
---|---|
static String |
HostAddress.toString(HostAddress[] addrs)
ToString implementation of addresses.
|
Modifier and Type | Method and Description |
---|---|
void |
UrlParser.setHostAddresses(List<HostAddress> addresses) |
static String |
HostAddress.toString(List<HostAddress> addrs)
ToString implementation of addresses.
|
Constructor and Description |
---|
UrlParser(String database,
List<HostAddress> addresses,
Options options,
HaMode haMode) |
Modifier and Type | Method and Description |
---|---|
static void |
SendHandshakeResponsePacket.send(PacketOutputStream pos,
String username,
String password,
HostAddress currentHost,
String database,
long clientCapabilities,
long serverCapabilities,
byte serverLanguage,
byte packetSeq,
Options options,
ReadInitialHandShakePacket greetingPacket)
Send handshake response packet.
|
Modifier and Type | Method and Description |
---|---|
Set<HostAddress> |
Listener.getBlacklistKeys() |
Set<HostAddress> |
AbstractMastersListener.getBlacklistKeys() |
Modifier and Type | Method and Description |
---|---|
void |
Listener.addToBlacklist(HostAddress hostAddress) |
void |
AbstractMastersListener.addToBlacklist(HostAddress hostAddress)
After a failover, put the hostAddress in a static list so the other connection will not take
this host in account for a time.
|
void |
Listener.removeFromBlacklist(HostAddress hostAddress) |
void |
AbstractMastersListener.removeFromBlacklist(HostAddress hostAddress)
After a successfull connection, permit to remove a hostAddress from blacklist.
|
void |
Listener.throwFailoverMessage(HostAddress failHostAddress,
boolean wasMaster,
SQLException queryException,
boolean reconnected) |
void |
AbstractMastersListener.throwFailoverMessage(HostAddress failHostAddress,
boolean wasMaster,
SQLException queryException,
boolean reconnected)
Throw a human readable message after a failoverException.
|
Modifier and Type | Method and Description |
---|---|
HostAddress |
AuroraListener.getClusterHostAddress() |
HostAddress |
AuroraListener.searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Looks for the current master/writer instance via the secondary protocol if it is found within 3
attempts.
|
Modifier and Type | Method and Description |
---|---|
List<HostAddress> |
MastersSlavesListener.connectedHosts()
List current connected HostAddress.
|
Modifier and Type | Method and Description |
---|---|
HostAddress |
AuroraListener.searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Looks for the current master/writer instance via the secondary protocol if it is found within 3
attempts.
|
Modifier and Type | Method and Description |
---|---|
HostAddress |
Protocol.getHostAddress() |
HostAddress |
AbstractConnectProtocol.getHostAddress() |
Modifier and Type | Method and Description |
---|---|
void |
Protocol.setHostAddress(HostAddress hostAddress) |
void |
AbstractConnectProtocol.setHostAddress(HostAddress host) |
Modifier and Type | Method and Description |
---|---|
static void |
AuroraProtocol.loop(AuroraListener listener,
GlobalStateInfo globalInfo,
List<HostAddress> addresses,
SearchFilter initialSearchFilter)
loop until found the failed connection.
|
static void |
MasterProtocol.loop(Listener listener,
GlobalStateInfo globalInfo,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
static void |
MastersSlavesProtocol.loop(MastersSlavesListener listener,
GlobalStateInfo globalInfo,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
Copyright © 2018 mariadb.org. All rights reserved.