primaryFail
public HandleErrorResult primaryFail(Method method,
Object[] args,
boolean killCmd,
boolean alreadyClosed)
- Specified by:
primaryFailin interfaceListener- Specified by:
primaryFailin classAbstractMastersListener
ListenercurrentConnectionAttempts, currentProtocol, currentReadOnlyAsked, explicitClosed, globalInfo, lastQueryNanos, lastRetry, proxy, urlParserMastersFailoverListener(UrlParser urlParser,
GlobalStateInfo globalInfo) booleancheckMasterStatus(SearchFilter searchFilter) voidfoundActiveMaster(Protocol protocol) longvoidvoidbooleanvoidpreAbort()voidpreClose()voidprimaryFail(Method method,
Object[] args,
boolean killCmd,
boolean alreadyClosed) voidvoidreconnectFailedConnection(SearchFilter searchFilter) voidrePrepareOnSlave(ServerPrepareResult oldServerPrepareResult,
boolean mustExecuteOnSlave) voidreset()voidswitchReadOnlyConnection(Boolean mustBeReadOnly) abortConnection, addToBlacklist, canRetryFailLoop, clearBlacklist, closeConnection, getBlacklistKeys, getCatalog, getCurrentProtocol, getFilterForFailedHost, getLastQueryNanos, getMajorServerVersion, getMasterHostFailNanos, getProxy, getRetriesAllDown, getTimeout, getUrlParser, handleFailover, hasHostFail, inTransaction, invoke, invoke, isAutoReconnect, isClosed, isExplicitClosed, isMasterConnection, isMasterHostFail, isQueryRelaunchable, isReadOnly, isServerMariaDb, isValid, noBackslashEscapes, pingMasterProtocol, preAutoReconnect, prolog, relaunchOperation, removeFromBlacklist, removeListenerFromSchedulers, resetMasterFailoverData, resetOldsBlackListHosts, sessionStateAware, setMasterHostFail, setProxy, setSessionReadOnly, syncConnection, throwFailoverMessage, versionGreaterOrEqualurlParser - url options.globalInfo - server global variables informationinitializeConnection in interface ListenerinitializeConnection in class AbstractMastersListenerSQLException - if connection is on error.preExecute in interface ListenerpreExecute in class AbstractMastersListenerSQLException - if connection has been explicitly closed.preClose in interface ListenerpreClose in class AbstractMastersListenerprimaryFail in interface ListenerprimaryFail in class AbstractMastersListenerreconnectFailedConnection in interface ListenerreconnectFailedConnection in class AbstractMastersListenersearchFilter - search parameters.SQLException - if there is any error during reconnectionswitchReadOnlyConnection in interface ListenerswitchReadOnlyConnection in class AbstractMastersListenermustBeReadOnly - is read-only flagSQLException - if a connection error occurprotocol - the new active connectionSQLExceptionreconnect in interface Listenerreconnect in class AbstractMastersListenerSQLException - if reconnect a new connection but there was an active transaction.handleFailLoop in class AbstractMastersListenercheckMasterStatus in interface ListenercheckMasterStatus in class AbstractMastersListenersearchFilter - search filterSQLException - if command fail.