Package | Description |
---|---|
org.mariadb.jdbc | |
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 |
---|---|
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 |
---|---|
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,
QueryException queryException,
boolean reconnected) |
void |
AbstractMastersListener.throwFailoverMessage(HostAddress failHostAddress,
boolean wasMaster,
QueryException queryException,
boolean reconnected)
Throw a human readable message after a failoverException.
|
Modifier and Type | Method and Description |
---|---|
HostAddress |
AuroraListener.searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Aurora replica doesn't have the master endpoint but the master instance name.
|
Modifier and Type | Method and Description |
---|---|
HostAddress |
AuroraListener.searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Aurora replica doesn't have the master endpoint but the master instance name.
|
Modifier and Type | Field and Description |
---|---|
protected HostAddress |
AbstractConnectProtocol.currentHost |
Modifier and Type | Method and Description |
---|---|
HostAddress |
Protocol.getHostAddress() |
HostAddress |
AbstractConnectProtocol.getHostAddress() |
Modifier and Type | Method and Description |
---|---|
static void |
AuroraProtocol.searchProbableMaster(AuroraListener listener,
HostAddress probableMaster,
SearchFilter searchFilter)
Connect aurora probable master.
|
void |
Protocol.setHostAddress(HostAddress hostAddress) |
void |
AbstractConnectProtocol.setHostAddress(HostAddress host) |
Modifier and Type | Method and Description |
---|---|
static void |
AuroraProtocol.loop(AuroraListener listener,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
static void |
MasterProtocol.loop(Listener listener,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
static void |
MastersSlavesProtocol.loop(MastersSlavesListener listener,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection.
|
Copyright © 2016. All rights reserved.