public class AuroraListener extends MastersSlavesListener
MastersSlavesListener.PingLoopAbstractMastersListener.FailLooplastQueryTime, masterProtocol, scheduledPing, secondaryProtocolqueriesSinceFailoverblacklist, currentConnectionAttempts, currentProtocol, currentReadOnlyAsked, executorService, explicitClosed, isLooping, jdbcUrl, lastRetry, proxy, scheduledFailover| Constructor and Description |
|---|
AuroraListener(JDBCUrl jdbcUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIfTypeHaveChanged(SearchFilter searchFilter) |
void |
initializeConnection() |
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, foundActiveMaster, foundActiveSecondary, preClose, preExecute, primaryFail, reconnect, secondaryFail, shouldReconnect, switchReadOnlyConnection, throwFailoverMessagegetFilterForFailedHost, getSecondaryHostFailTimestamp, handleFailover, hasHostFail, isSecondaryHostFail, resetMasterFailoverData, resetSecondaryFailoverData, setSecondaryHostFailaddToBlacklist, getBlacklist, getCurrentProtocol, getJdbcUrl, getMasterHostFailTimestamp, getProxy, getRetriesAllDown, invoke, isAutoReconnect, isClosed, isExplicitClosed, isMasterHostFail, isReadOnly, launchFailLoopIfNotlaunched, relaunchOperation, resetOldsBlackListHosts, setExplicitClosed, setMasterHostFail, setProxy, setSessionReadOnly, stopFailover, syncConnectionpublic AuroraListener(JDBCUrl jdbcUrl)
public void initializeConnection()
throws QueryException
initializeConnection in interface ListenerinitializeConnection in class MastersSlavesListenerQueryExceptionpublic 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 void checkIfTypeHaveChanged(SearchFilter searchFilter) throws QueryException
checkIfTypeHaveChanged in class MastersSlavesListenerQueryExceptionCopyright © 2015. All rights reserved.