| 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)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
default CredentialPlugin |
CredentialPlugin.initialize(Options options,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
EnvCredentialPlugin.initialize(Options options,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
PropertiesCredentialPlugin.initialize(Options options,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<HostAddress,HostStateInfo> |
Listener.getBlacklist() |
ConcurrentMap<HostAddress,HostStateInfo> |
AbstractMastersListener.getBlacklist() |
Set<HostAddress> |
Listener.getBlacklistKeys() |
Set<HostAddress> |
AbstractMastersListener.getBlacklistKeys() |
Set<HostAddress> |
AbstractMastersListener.getPickedlist() |
| 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.addToPickedList(HostAddress hostAddress) |
void |
AbstractMastersListener.addToPickedList(HostAddress hostAddress) |
void |
Listener.removeFromBlacklist(HostAddress hostAddress) |
void |
AbstractMastersListener.removeFromBlacklist(HostAddress hostAddress)
After a successfull connection, permit to remove a hostAddress from blacklist.
|
void |
Listener.removeFromPickedList(HostAddress hostAddress) |
void |
AbstractMastersListener.removeFromPickedList(HostAddress hostAddress) |
void |
Listener.resetHostStateInfo(HostAddress hostAddress) |
void |
AbstractMastersListener.resetHostStateInfo(HostAddress hostAddress) |
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 |
|---|---|
boolean |
AppendStrategy.needToAppend(HostAddress hostAddress,
Properties properties) |
boolean |
NormalAppend.needToAppend(HostAddress hostAddress,
Properties properties) |
boolean |
RetryDuration.needToAppend(HostAddress host,
Properties properties) |
static void |
RetryDuration.removeFromFailureRecords(HostAddress host) |
| Modifier and Type | Class and Description |
|---|---|
class |
LoadBalanceHostAddress |
| Modifier and Type | Field and Description |
|---|---|
protected List<HostAddress> |
MastersSlavesListener.hostAddresses |
| 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.
|
List<HostAddress> |
LoadBalanceAddressList.convertToHostAddressList() |
| Modifier and Type | Method and Description |
|---|---|
void |
LoadBalanceDriver.loop(UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
LoadBalanceDriver.loop(UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
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 |
|---|---|
static boolean |
BalanceStrategy.allBlack(List<HostAddress> loopAddress,
ConcurrentMap<HostAddress,HostStateInfo> blacklist) |
static boolean |
BalanceStrategy.allBlack(List<HostAddress> loopAddress,
ConcurrentMap<HostAddress,HostStateInfo> blacklist) |
void |
GroupBalanceStrategy.pickAddressList(List<LoadBalanceAddressList> groups,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
GroupBalanceStrategy.pickAddressList(List<LoadBalanceAddressList> groups,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
GroupRotationStrategy.pickAddressList(List<LoadBalanceAddressList> groups,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
GroupRotationStrategy.pickAddressList(List<LoadBalanceAddressList> groups,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
ServerAffinityStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
ServerAffinityStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
RandomStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
RandomStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
BalanceStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList)
Select a proper connection based on the current configuration information
|
void |
BalanceStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList)
Select a proper connection based on the current configuration information
|
void |
RotationStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
void |
RotationStrategy.pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList) |
| Modifier and Type | Method and Description |
|---|---|
HostAddress |
AbstractConnectProtocol.getHostAddress() |
HostAddress |
Protocol.getHostAddress() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractConnectProtocol.setHostAddress(HostAddress host) |
void |
Protocol.setHostAddress(HostAddress hostAddress) |
| 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) |
static void |
MasterProtocol.loop(Listener listener,
GlobalStateInfo globalInfo,
List<HostAddress> addresses,
boolean fallThrough)
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 © 2022 oceanbase.com. All rights reserved.