Class MasterProtocol

All Implemented Interfaces:
Closeable, AutoCloseable, Protocol
Direct Known Subclasses:
MastersReplicasProtocol

public class MasterProtocol extends AbstractQueryProtocol implements Closeable
  • Constructor Details

    • MasterProtocol

      public MasterProtocol(UrlParser urlParser, GlobalStateInfo globalInfo, ReentrantLock lock, LruTraceCache traceCache)
      Get a protocol instance.
      Parameters:
      urlParser - connection URL infos
      globalInfo - server global variables information
      lock - the lock for thread synchronisation
      traceCache - trace cache
  • Method Details

    • loop

      public static void loop(Listener listener, GlobalStateInfo globalInfo, List<HostAddress> addresses, SearchFilter searchFilter) throws SQLException
      loop until found the failed connection.
      Parameters:
      listener - current failover
      globalInfo - server global variables information
      addresses - list of HostAddress to loop
      searchFilter - search parameter
      Throws:
      SQLException - if not found