|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mariadb.jdbc.internal.protocol.AbstractConnectProtocol
org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol
org.mariadb.jdbc.internal.protocol.MasterProtocol
public class MasterProtocol
Field Summary |
---|
Fields inherited from class org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol |
---|
readScheduler |
Fields inherited from class org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol |
---|
activeStreamingResult, autoIncrementIncrement, connected, currentHost, database, dataTypeMappingFlags, eofDeprecated, explicitClosed, hasWarnings, IS_MASTER_QUERY, lock, options, proxy, reader, readOnly, serverCapabilities, serverPrepareStatementCache, serverStatus, serverThreadId, SESSION_QUERY, socket, urlParser, writer |
Constructor Summary | |
---|---|
MasterProtocol(UrlParser urlParser,
ReentrantLock lock)
Get a protocol instance. |
Method Summary | |
---|---|
static MasterProtocol |
getNewProtocol(FailoverProxy proxy,
UrlParser urlParser)
Get new instance. |
static void |
loop(Listener listener,
List<HostAddress> addresses,
SearchFilter searchFilter)
loop until found the failed connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.Closeable |
---|
close |
Constructor Detail |
---|
public MasterProtocol(UrlParser urlParser, ReentrantLock lock)
urlParser
- connection URL infoslock
- the lock for thread synchronisationMethod Detail |
---|
public static MasterProtocol getNewProtocol(FailoverProxy proxy, UrlParser urlParser)
proxy
- proxyurlParser
- url connection object
public static void loop(Listener listener, List<HostAddress> addresses, SearchFilter searchFilter) throws SQLException
listener
- current failoveraddresses
- list of HostAddress to loopsearchFilter
- search parameter
SQLException
- if not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |