Package | Description |
---|---|
org.mariadb.jdbc.internal.failover | |
org.mariadb.jdbc.internal.failover.impl | |
org.mariadb.jdbc.internal.failover.thread | |
org.mariadb.jdbc.internal.protocol |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMastersListener |
class |
AbstractMastersSlavesListener |
Modifier and Type | Field and Description |
---|---|
private Listener |
FailoverProxy.listener |
Modifier and Type | Method and Description |
---|---|
Listener |
FailoverProxy.getListener() |
Constructor and Description |
---|
FailoverProxy(Listener listener,
java.util.concurrent.locks.ReentrantLock lock)
Proxy constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AuroraListener |
class |
MastersFailoverListener |
class |
MastersSlavesListener
this class handle the operation when multiple hosts.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentLinkedQueue<Listener> |
ConnectionValidator.queue |
private static java.util.concurrent.ConcurrentLinkedQueue<Listener> |
FailoverLoop.queue |
Modifier and Type | Method and Description |
---|---|
static void |
FailoverLoop.addListener(Listener listener) |
void |
ConnectionValidator.addListener(Listener listener,
long listenerCheckMillis)
Add listener to validation list.
|
void |
ConnectionValidator.removeListener(Listener listener)
Remove listener to validation list.
|
static void |
FailoverLoop.removeListener(Listener listener) |
Modifier and Type | Method and Description |
---|---|
static void |
MasterProtocol.loop(Listener listener,
GlobalStateInfo globalInfo,
java.util.List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
private static void |
MasterProtocol.resetHostList(Listener listener,
java.util.Deque<HostAddress> loopAddresses)
Reinitialize loopAddresses with all hosts : all servers in randomize order without connected
host.
|