Modifier and Type | Method and Description |
---|---|
static void |
SQLExceptionMapper.throwException(QueryException e,
MySQLConnection connection,
Statement statement) |
Modifier and Type | Method and Description |
---|---|
static Protocol |
Utils.retrieveProxy(JDBCUrl jdbcUrl,
ReentrantReadWriteLock lock) |
Modifier and Type | Method and Description |
---|---|
int |
CommandPacket.send(OutputStream os) |
Modifier and Type | Method and Description |
---|---|
int |
StreamedQueryPacket.send(OutputStream ostream) |
Modifier and Type | Method and Description |
---|---|
void |
Query.validate() |
void |
MySQLQuery.validate() |
void |
MySQLClientParameterizedQuery.validate() |
void |
Query.writeFirstRewritePart(OutputStream os) |
void |
MySQLQuery.writeFirstRewritePart(OutputStream os) |
void |
MySQLClientParameterizedQuery.writeFirstRewritePart(OutputStream os) |
void |
Query.writeLastRewritePart(OutputStream os) |
void |
MySQLQuery.writeLastRewritePart(OutputStream os) |
void |
MySQLClientParameterizedQuery.writeLastRewritePart(OutputStream os) |
void |
Query.writeTo(OutputStream os) |
void |
MySQLClientParameterizedQuery.writeTo(OutputStream os) |
void |
Query.writeToRewritablePart(OutputStream os,
int rewriteOffset) |
void |
MySQLQuery.writeToRewritablePart(OutputStream os,
int rewriteOffset) |
void |
MySQLClientParameterizedQuery.writeToRewritablePart(OutputStream os,
int rewriteOffset) |
Modifier and Type | Class and Description |
---|---|
class |
NoSuchColumnException |
Modifier and Type | Method and Description |
---|---|
static CachedSelectResult |
CachedSelectResult.createCachedSelectResult(StreamingSelectResult streamingResult) |
static StreamingSelectResult |
StreamingSelectResult.createStreamingSelectResult(ResultSetPacket packet,
PacketFetcher packetFetcher,
MySQLProtocol protocol,
boolean binaryProtocol) |
boolean |
StreamingSelectResult.next() |
abstract boolean |
SelectQueryResult.next() |
boolean |
CachedSelectResult.next() |
Modifier and Type | Method and Description |
---|---|
boolean |
FailoverProxy.hasToHandleFailover(QueryException e)
Check if this Sqlerror is a connection exception. if that's the case, must be handle by failover
error codes :
08000 : connection exception
08001 : SQL client unable to establish SQL connection
08002 : connection name in use
08003 : connection does not exist
08004 : SQL server rejected SQL connection
08006 : connection failure
08007 : transaction resolution unknown
70100 : connection was killed
|
Modifier and Type | Method and Description |
---|---|
void |
Protocol.cancelCurrentQuery() |
void |
MySQLProtocol.cancelCurrentQuery()
cancels the current query - clones the current protocol and executes a query using the new connection
|
boolean |
Protocol.checkIfMaster() |
boolean |
MySQLProtocol.checkIfMaster() |
boolean |
AuroraProtocol.checkIfMaster()
Aurora best way to check if a node is a master : is not in read-only mode
|
protected static void |
MySQLProtocol.close(PacketFetcher fetcher,
PacketOutputStream packetOutputStream,
Socket socket) |
void |
Protocol.closePreparedStatement(int statementId) |
void |
MySQLProtocol.closePreparedStatement(int statementId) |
void |
Protocol.connect() |
void |
MySQLProtocol.connect() |
void |
Protocol.connectWithoutProxy() |
void |
MySQLProtocol.connectWithoutProxy() |
QueryResult |
MySQLProtocol.executeBatch(List<Query> dQueries,
boolean streaming,
boolean isRewritable,
int rewriteOffset) |
QueryResult |
Protocol.executePreparedQuery(String sql,
ParameterHolder[] parameters,
PrepareResult prepareResult,
MySQLType[] parameterTypeHeader,
boolean isStreaming) |
QueryResult |
MySQLProtocol.executePreparedQuery(String sql,
ParameterHolder[] parameters,
PrepareResult prepareResult,
MySQLType[] parameterTypeHeader,
boolean isStreaming) |
QueryResult |
Protocol.executePreparedQueryAfterFailover(String sql,
ParameterHolder[] parameters,
PrepareResult oldPrepareResult,
MySQLType[] parameterTypeHeader,
boolean isStreaming) |
QueryResult |
MySQLProtocol.executePreparedQueryAfterFailover(String sql,
ParameterHolder[] parameters,
PrepareResult oldPrepareResult,
MySQLType[] parameterTypeHeader,
boolean isStreaming) |
QueryResult |
Protocol.executeQuery(List<Query> dQueries,
boolean streaming,
boolean isRewritable,
int rewriteOffset) |
QueryResult |
MySQLProtocol.executeQuery(List<Query> dQueries,
boolean streaming,
boolean isRewritable,
int rewriteOffset) |
QueryResult |
Protocol.executeQuery(Query dQuery) |
QueryResult |
MySQLProtocol.executeQuery(Query dQuery) |
QueryResult |
Protocol.executeQuery(Query dQuery,
boolean streaming) |
QueryResult |
MySQLProtocol.executeQuery(Query query,
boolean streaming) |
QueryResult |
Protocol.getMoreResults(boolean streaming) |
QueryResult |
MySQLProtocol.getMoreResults(boolean streaming) |
QueryResult |
Protocol.getResult(Object dQuery,
boolean streaming,
boolean binaryProtocol) |
QueryResult |
MySQLProtocol.getResult(Object dQueries,
boolean streaming,
boolean binaryProtocol) |
static void |
AuroraProtocol.loop(AuroraListener listener,
List<HostAddress> addresses,
Map<HostAddress,Long> blacklist,
SearchFilter searchFilter)
loop until found the failed connection.
|
static void |
MySQLProtocol.loop(Listener listener,
List<HostAddress> addresses,
Map<HostAddress,Long> blacklist,
SearchFilter searchFilter)
loop until found the failed connection.
|
static void |
MastersSlavesProtocol.loop(MastersSlavesListener listener,
List<HostAddress> addresses,
Map<HostAddress,Long> blacklist,
SearchFilter searchFilter)
loop until found the failed connection.
|
boolean |
Protocol.noBackslashEscapes() |
boolean |
Protocol.ping() |
boolean |
MySQLProtocol.ping() |
PrepareResult |
Protocol.prepare(String sql) |
PrepareResult |
MySQLProtocol.prepare(String sql) |
void |
Protocol.releasePrepareStatement(String sql,
int statementId) |
void |
MySQLProtocol.releasePrepareStatement(String sql,
int statementId) |
static void |
AuroraProtocol.searchProbableMaster(AuroraListener listener,
HostAddress probableMaster,
Map<HostAddress,Long> blacklist,
SearchFilter searchFilter) |
void |
Protocol.setCatalog(String database) |
void |
MySQLProtocol.setCatalog(String database) |
void |
Protocol.setMaxRows(int max) |
void |
MySQLProtocol.setMaxRows(int max) |
void |
Protocol.setReadonly(boolean readOnly) |
void |
Protocol.setTransactionIsolation(int level) |
void |
MySQLProtocol.setTransactionIsolation(int level) |
Constructor and Description |
---|
FailoverProxy(Listener listener,
ReentrantReadWriteLock lock) |
Modifier and Type | Method and Description |
---|---|
void |
Listener.throwFailoverMessage(QueryException queryException,
boolean reconnected) |
abstract void |
AbstractMastersListener.throwFailoverMessage(QueryException queryException,
boolean reconnected) |
Modifier and Type | Method and Description |
---|---|
void |
Listener.foundActiveMaster(Protocol protocol) |
abstract void |
AbstractMastersSlavesListener.foundActiveSecondary(Protocol newSecondaryProtocol) |
void |
Listener.initializeConnection() |
abstract void |
AbstractMastersListener.initializeConnection() |
void |
Listener.preExecute() |
abstract void |
AbstractMastersListener.preExecute() |
void |
Listener.reconnect() |
abstract void |
AbstractMastersListener.reconnect() |
void |
Listener.reconnectFailedConnection(SearchFilter filter) |
abstract void |
AbstractMastersListener.reconnectFailedConnection(SearchFilter filter) |
protected void |
AbstractMastersListener.setSessionReadOnly(boolean readOnly,
Protocol protocol) |
void |
Listener.switchReadOnlyConnection(Boolean readonly) |
abstract void |
AbstractMastersListener.switchReadOnlyConnection(Boolean readonly) |
void |
Listener.syncConnection(Protocol from,
Protocol to) |
void |
AbstractMastersListener.syncConnection(Protocol from,
Protocol to)
when switching between 2 connections, report existing connection parameter to the new used connection
|
void |
Listener.throwFailoverMessage(QueryException queryException,
boolean reconnected) |
abstract void |
AbstractMastersListener.throwFailoverMessage(QueryException queryException,
boolean reconnected) |
Modifier and Type | Method and Description |
---|---|
void |
MastersSlavesListener.throwFailoverMessage(QueryException queryException,
boolean reconnected)
Throw a human readable message after a failoverException
|
void |
MastersFailoverListener.throwFailoverMessage(QueryException queryException,
boolean reconnected)
Throw a human readable message after a failoverException
|
Modifier and Type | Method and Description |
---|---|
void |
MastersSlavesListener.checkIfTypeHaveChanged(SearchFilter searchFilter) |
void |
AuroraListener.checkIfTypeHaveChanged(SearchFilter searchFilter) |
void |
MastersFailoverListener.foundActiveMaster(Protocol protocol)
method called when a new Master connection is found after a fallback
|
void |
MastersSlavesListener.foundActiveSecondary(Protocol newSecondaryProtocol)
method called when a new secondary connection is found after a fallback
|
void |
MastersSlavesListener.initializeConnection() |
void |
MastersFailoverListener.initializeConnection() |
void |
AuroraListener.initializeConnection() |
void |
MastersSlavesListener.preExecute() |
void |
MastersFailoverListener.preExecute() |
void |
MastersSlavesListener.reconnect() |
void |
MastersFailoverListener.reconnect() |
void |
MastersSlavesListener.reconnectFailedConnection(SearchFilter searchFilter)
Loop to connect
|
void |
MastersFailoverListener.reconnectFailedConnection(SearchFilter searchFilter)
Loop to connect
|
void |
AuroraListener.reconnectFailedConnection(SearchFilter searchFilter)
search a valid connection for failed one.
|
void |
MastersSlavesListener.switchReadOnlyConnection(Boolean mustBeReadOnly)
switch to a read-only(secondary) or read and write connection(master)
|
void |
MastersFailoverListener.switchReadOnlyConnection(Boolean mustBeReadOnly) |
void |
MastersSlavesListener.throwFailoverMessage(QueryException queryException,
boolean reconnected)
Throw a human readable message after a failoverException
|
void |
MastersFailoverListener.throwFailoverMessage(QueryException queryException,
boolean reconnected)
Throw a human readable message after a failoverException
|
Modifier and Type | Method and Description |
---|---|
int |
MySQLClientOldPasswordAuthPacket.send(OutputStream os) |
Copyright © 2015. All rights reserved.