public interface Listener
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
void initializeConnection()
throws SQLException
SQLExceptionvoid preExecute()
throws SQLException
SQLExceptionvoid preClose()
void preAbort()
long getServerThreadId()
void reconnectFailedConnection(SearchFilter filter) throws SQLException
SQLExceptionvoid switchReadOnlyConnection(Boolean readonly) throws SQLException
SQLExceptionHandleErrorResult primaryFail(Method method, Object[] args, boolean killCmd, boolean wasClosed) throws SQLException
SQLExceptionObject invoke(Method method, Object[] args, Protocol specificProtocol) throws Throwable
ThrowableHandleErrorResult handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean wasClosed) throws Throwable
Throwablevoid foundActiveMaster(Protocol protocol) throws SQLException
SQLExceptionSet<HostAddress> getBlacklistKeys()
void addToBlacklist(HostAddress hostAddress)
void removeFromBlacklist(HostAddress hostAddress)
void syncConnection(Protocol from, Protocol to) throws SQLException
SQLExceptionUrlParser getUrlParser()
void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, SQLException queryException, boolean reconnected) throws SQLException
SQLExceptionboolean isAutoReconnect()
int getRetriesAllDown()
boolean isExplicitClosed()
void reconnect()
throws SQLException
SQLExceptionboolean isReadOnly()
boolean inTransaction()
int getMajorServerVersion()
boolean isMasterConnection()
boolean isClosed()
boolean versionGreaterOrEqual(int major,
int minor,
int patch)
boolean isServerMariaDb()
boolean sessionStateAware()
boolean noBackslashEscapes()
boolean isValid(int timeout)
throws SQLException
SQLExceptionvoid prolog(long maxRows,
MariaDbConnection connection,
MariaDbStatement statement)
throws SQLException
SQLExceptionString getCatalog() throws SQLException
SQLExceptionint getTimeout()
throws SocketException
SocketExceptionProtocol getCurrentProtocol()
boolean hasHostFail()
boolean canRetryFailLoop()
SearchFilter getFilterForFailedHost()
boolean isMasterConnected()
boolean setMasterHostFail()
boolean isMasterHostFail()
long getLastQueryNanos()
boolean checkMasterStatus(SearchFilter searchFilter)
void rePrepareOnSlave(ServerPrepareResult oldServerPrepareResult, boolean mustExecuteOnMaster) throws SQLException
SQLExceptionvoid reset()
throws SQLException
SQLExceptionCopyright © 2020 mariadb.com. All rights reserved.