public abstract class AbstractMastersSlavesListener extends AbstractMastersListener
AbstractMastersListener.FailLoop| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
queriesSinceFailover |
blacklist, currentConnectionAttempts, currentProtocol, currentReadOnlyAsked, executorService, explicitClosed, isLooping, jdbcUrl, lastRetry, proxy, scheduledFailover| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMastersSlavesListener(JDBCUrl jdbcUrl) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
foundActiveSecondary(Protocol newSecondaryProtocol) |
SearchFilter |
getFilterForFailedHost() |
long |
getSecondaryHostFailTimestamp() |
HandleErrorResult |
handleFailover(Method method,
Object[] args) |
boolean |
hasHostFail() |
boolean |
isSecondaryHostFail() |
protected void |
resetMasterFailoverData() |
protected void |
resetSecondaryFailoverData() |
abstract HandleErrorResult |
secondaryFail(Method method,
Object[] args) |
boolean |
setSecondaryHostFail() |
addToBlacklist, getBlacklist, getCurrentProtocol, getInitialTimeout, getJdbcUrl, getMasterHostFailTimestamp, getProxy, getRetriesAllDown, initializeConnection, invoke, isAutoReconnect, isClosed, isExplicitClosed, isMasterHostFail, isReadOnly, launchFailLoopIfNotlaunched, preClose, preExecute, primaryFail, reconnect, reconnectFailedConnection, relaunchOperation, resetOldsBlackListHosts, setExplicitClosed, setMasterHostFail, setProxy, setSessionReadOnly, shouldReconnect, stopFailover, switchReadOnlyConnection, syncConnection, throwFailoverMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfoundActiveMasterprotected AtomicInteger queriesSinceFailover
protected AbstractMastersSlavesListener(JDBCUrl jdbcUrl)
public HandleErrorResult handleFailover(Method method, Object[] args) throws Throwable
handleFailover in interface ListenerhandleFailover in class AbstractMastersListenerThrowableprotected void resetMasterFailoverData()
resetMasterFailoverData in class AbstractMastersListenerprotected void resetSecondaryFailoverData()
public long getSecondaryHostFailTimestamp()
public boolean setSecondaryHostFail()
public boolean isSecondaryHostFail()
public boolean hasHostFail()
hasHostFail in class AbstractMastersListenerpublic SearchFilter getFilterForFailedHost()
getFilterForFailedHost in class AbstractMastersListenerpublic abstract HandleErrorResult secondaryFail(Method method, Object[] args) throws Throwable
Throwablepublic abstract void foundActiveSecondary(Protocol newSecondaryProtocol)
Copyright © 2015. All rights reserved.