public class AuroraListener extends MastersSlavesListener
masterProtocol, secondaryProtocolwaitNewMasterProtocol, waitNewSecondaryProtocolcurrentConnectionAttempts, currentProtocol, currentReadOnlyAsked, explicitClosed, lastQueryNanos, lastRetry, proxy, urlParser| Constructor and Description |
|---|
AuroraListener(UrlParser urlParser)
Constructor for Aurora.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMasterStatus(SearchFilter searchFilter)
Check master status.
|
void |
reconnectFailedConnection(SearchFilter searchFilter)
Search a valid connection for failed one.
|
HostAddress |
searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Aurora replica doesn't have the master endpoint but the master instance name.
|
checkInitialConnection, checkWaitingConnection, foundActiveMaster, foundActiveSecondary, handleFailLoop, initializeConnection, isMasterConnected, lockAndSwitchMaster, lockAndSwitchSecondary, preClose, preExecute, primaryFail, reconnect, removeListenerFromSchedulers, rePrepareOnSlave, secondaryFail, switchReadOnlyConnectiongetFilterForFailedHost, getSecondaryHostFailNanos, handleFailover, hasHostFail, isMasterHostFailReconnect, isSecondaryHostFail, isSecondaryHostFailReconnect, resetMasterFailoverData, resetSecondaryFailoverData, setSecondaryHostFailaddToBlacklist, canRetryFailLoop, clearBlacklist, closeConnection, getBlacklistKeys, getCurrentProtocol, getLastQueryNanos, getMasterHostFailNanos, getProxy, getRetriesAllDown, getUrlParser, invoke, invoke, isAutoReconnect, isClosed, isExplicitClosed, isMasterHostFail, isQueryRelaunchable, isReadOnly, pingMasterProtocol, preAutoReconnect, relaunchOperation, removeFromBlacklist, resetOldsBlackListHosts, setMasterHostFail, setProxy, setSessionReadOnly, syncConnection, throwFailoverMessagepublic AuroraListener(UrlParser urlParser)
urlParser - connection informationspublic void reconnectFailedConnection(SearchFilter searchFilter) throws QueryException
reconnectFailedConnection in interface ListenerreconnectFailedConnection in class MastersSlavesListenerQueryException - if a connection asked is not foundpublic HostAddress searchByStartName(Protocol secondaryProtocol, List<HostAddress> loopAddress)
secondaryProtocol - the current secondary protocolloopAddress - list of possible hostspublic boolean checkMasterStatus(SearchFilter searchFilter)
MastersSlavesListenercheckMasterStatus in interface ListenercheckMasterStatus in class MastersSlavesListenersearchFilter - search filterCopyright © 2016. All rights reserved.