JavaScript is disabled on your browser.
Description
Field Summary
Constructor Summary
Method Summary
Field Details
urlParser
currentConnectionAttempts
explicitClosed
globalInfo
currentReadOnlyAsked
currentProtocol
proxy
lastRetry
lastQueryNanos
Constructor Details
AbstractMastersListener(UrlParser, GlobalStateInfo)
Method Details
clearBlacklist()
initializeConnection()
removeListenerFromSchedulers()
preAutoReconnect()
getProxy()
setProxy(FailoverProxy)
getBlacklistKeys()
handleFailover(SQLException, Method, Object[], Protocol, boolean)
addToBlacklist(HostAddress)
removeFromBlacklist(HostAddress)
resetOldsBlackListHosts()
resetMasterFailoverData()
setSessionReadOnly(boolean, Protocol)
handleFailLoop()
getCurrentProtocol()
getMasterHostFailNanos()
setMasterHostFail()
isMasterHostFail()
hasHostFail()
getFilterForFailedHost()
relaunchOperation(Method, Object[])
isQueryRelaunchable(Method, Object[])
invoke(Method, Object[], Protocol)
invoke(Method, Object[])
syncConnection(Protocol, Protocol)
versionGreaterOrEqual(int, int, int)
isServerMariaDb()
sessionStateAware()
noBackslashEscapes()
getMajorServerVersion()
isClosed()
isValid(int)
isReadOnly()
inTransaction()
isMasterConnection()
isExplicitClosed()
getRetriesAllDown()
isAutoReconnect()
getUrlParser()
preExecute()
preClose()
reconnectFailedConnection(SearchFilter)
switchReadOnlyConnection(Boolean)
primaryFail(Method, Object[], boolean, boolean)
throwFailoverMessage(HostAddress, boolean, SQLException, boolean)
canRetryFailLoop()
prolog(long, MariaDbConnection, MariaDbStatement)
getCatalog()
getTimeout()
reconnect()
checkMasterStatus(SearchFilter)
getLastQueryNanos()
pingMasterProtocol(Protocol)
closeConnection(Protocol)
abortConnection(Protocol)
Field Summary
Fields
protected boolean
protected long
protected long
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
void
Utility to force close existing connection.
void
After a failover, put the hostAddress in a static list so the other connection will not take
this host in account for a time.
boolean
abstract boolean
static void
void
Utility to close existing connection.
long
int
long
int
int
abstract void
Call when a failover is detected on master connection.
boolean
void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Check if query can be re-executed.
boolean
boolean
boolean
boolean
protected boolean
protected void
abstract void
abstract void
void
abstract void
abstract void
After a failover that has bean done, relaunch the operation that was in progress.
void
After a successfull connection, permit to remove a hostAddress from blacklist.
protected void
protected void
void
Permit to remove Host to blacklist after loadBalanceBlacklistTimeout seconds.
boolean
boolean
Set master fail variables.
void
protected void
abstract void
void
When switching between 2 connections, report existing connection parameter to the new used
connection.
void
Throw a human readable message after a failoverException.
boolean
Methods inherited from class Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
currentConnectionAttempts
Method Details
removeListenerFromSchedulers