Uses of Class
org.mariadb.jdbc.HostAddress
-
Packages that use HostAddress Package Description org.mariadb.jdbc org.mariadb.jdbc.internal.com.send org.mariadb.jdbc.internal.failover org.mariadb.jdbc.internal.failover.impl org.mariadb.jdbc.internal.protocol -
-
Uses of HostAddress in org.mariadb.jdbc
Fields in org.mariadb.jdbc with type parameters of type HostAddress Modifier and Type Field Description private java.util.List<HostAddress>
UrlParser. addresses
Methods in org.mariadb.jdbc that return HostAddress Modifier and Type Method Description private static HostAddress
HostAddress. parseParameterHostAddress(java.lang.String str)
private static HostAddress
HostAddress. parseSimpleHostAddress(java.lang.String str)
Methods in org.mariadb.jdbc that return types with arguments of type HostAddress Modifier and Type Method Description java.util.List<HostAddress>
UrlParser. getHostAddresses()
static java.util.List<HostAddress>
HostAddress. parse(java.lang.String spec, HaMode haMode)
parse - parse server addresses from the URL fragment.Methods in org.mariadb.jdbc with parameters of type HostAddress Modifier and Type Method Description static java.lang.String
HostAddress. toString(HostAddress[] addrs)
ToString implementation of addresses.Method parameters in org.mariadb.jdbc with type arguments of type HostAddress Modifier and Type Method Description void
UrlParser. setHostAddresses(java.util.List<HostAddress> addresses)
static java.lang.String
HostAddress. toString(java.util.List<HostAddress> addrs)
ToString implementation of addresses.Constructor parameters in org.mariadb.jdbc with type arguments of type HostAddress Constructor Description UrlParser(java.lang.String database, java.util.List<HostAddress> addresses, Options options, HaMode haMode)
-
Uses of HostAddress in org.mariadb.jdbc.internal.com.send
Methods in org.mariadb.jdbc.internal.com.send with parameters of type HostAddress Modifier and Type Method Description static void
SendHandshakeResponsePacket. send(PacketOutputStream pos, java.lang.String username, java.lang.String password, HostAddress currentHost, java.lang.String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, ReadInitialHandShakePacket greetingPacket)
Send handshake response packet.private static void
SendHandshakeResponsePacket. writeConnectAttributes(PacketOutputStream pos, java.lang.String connectionAttributes, HostAddress currentHost)
-
Uses of HostAddress in org.mariadb.jdbc.internal.failover
Fields in org.mariadb.jdbc.internal.failover with type parameters of type HostAddress Modifier and Type Field Description private static java.util.concurrent.ConcurrentMap<HostAddress,java.lang.Long>
AbstractMastersListener. blacklist
List the recent failedConnection.Methods in org.mariadb.jdbc.internal.failover that return types with arguments of type HostAddress Modifier and Type Method Description java.util.Set<HostAddress>
AbstractMastersListener. getBlacklistKeys()
java.util.Set<HostAddress>
Listener. getBlacklistKeys()
Methods in org.mariadb.jdbc.internal.failover with parameters of type HostAddress Modifier and Type Method Description void
AbstractMastersListener. addToBlacklist(HostAddress hostAddress)
After a failover, put the hostAddress in a static list so the other connection will not take this host in account for a time.void
Listener. addToBlacklist(HostAddress hostAddress)
void
AbstractMastersListener. removeFromBlacklist(HostAddress hostAddress)
After a successfull connection, permit to remove a hostAddress from blacklist.void
Listener. removeFromBlacklist(HostAddress hostAddress)
void
AbstractMastersListener. throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, java.sql.SQLException queryException, boolean reconnected)
Throw a human readable message after a failoverException.void
Listener. throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, java.sql.SQLException queryException, boolean reconnected)
-
Uses of HostAddress in org.mariadb.jdbc.internal.failover.impl
Fields in org.mariadb.jdbc.internal.failover.impl declared as HostAddress Modifier and Type Field Description private HostAddress
AuroraListener. clusterHostAddress
Methods in org.mariadb.jdbc.internal.failover.impl that return HostAddress Modifier and Type Method Description private HostAddress
AuroraListener. findClusterHostAddress(UrlParser urlParser)
Retrieves the cluster host address from the UrlParser instance.HostAddress
AuroraListener. getClusterHostAddress()
HostAddress
AuroraListener. searchByStartName(Protocol secondaryProtocol, java.util.List<HostAddress> loopAddress)
Looks for the current master/writer instance via the secondary protocol if it is found within 3 attempts.private HostAddress
AuroraListener. searchForMasterHostAddress(Protocol protocol, java.util.List<HostAddress> loopAddress)
Aurora replica doesn't have the master endpoint but the master instance name.Methods in org.mariadb.jdbc.internal.failover.impl that return types with arguments of type HostAddress Modifier and Type Method Description java.util.List<HostAddress>
MastersSlavesListener. connectedHosts()
List current connected HostAddress.Method parameters in org.mariadb.jdbc.internal.failover.impl with type arguments of type HostAddress Modifier and Type Method Description HostAddress
AuroraListener. searchByStartName(Protocol secondaryProtocol, java.util.List<HostAddress> loopAddress)
Looks for the current master/writer instance via the secondary protocol if it is found within 3 attempts.private HostAddress
AuroraListener. searchForMasterHostAddress(Protocol protocol, java.util.List<HostAddress> loopAddress)
Aurora replica doesn't have the master endpoint but the master instance name. -
Uses of HostAddress in org.mariadb.jdbc.internal.protocol
Fields in org.mariadb.jdbc.internal.protocol declared as HostAddress Modifier and Type Field Description private HostAddress
AbstractConnectProtocol. currentHost
Methods in org.mariadb.jdbc.internal.protocol that return HostAddress Modifier and Type Method Description HostAddress
AbstractConnectProtocol. getHostAddress()
HostAddress
Protocol. getHostAddress()
Methods in org.mariadb.jdbc.internal.protocol with parameters of type HostAddress Modifier and Type Method Description private static void
AuroraProtocol. searchProbableMaster(AuroraListener listener, GlobalStateInfo globalInfo, HostAddress probableMaster)
Connect aurora probable master.void
AbstractConnectProtocol. setHostAddress(HostAddress host)
void
Protocol. setHostAddress(HostAddress hostAddress)
Method parameters in org.mariadb.jdbc.internal.protocol with type arguments of type HostAddress Modifier and Type Method Description static void
AuroraProtocol. loop(AuroraListener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter initialSearchFilter)
loop until found the failed connection.static void
MasterProtocol. loop(Listener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter searchFilter)
loop until found the failed connection.static void
MastersSlavesProtocol. loop(MastersSlavesListener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter searchFilter)
loop until found the failed connection.private static void
AuroraProtocol. resetHostList(AuroraListener listener, java.util.Deque<HostAddress> loopAddresses)
Reinitialize loopAddresses with all hosts : all servers in randomize order with cluster address.private static void
MasterProtocol. resetHostList(Listener listener, java.util.Deque<HostAddress> loopAddresses)
Reinitialize loopAddresses with all hosts : all servers in randomize order without connected host.private static void
MastersSlavesProtocol. resetHostList(MastersSlavesListener listener, java.util.Deque<HostAddress> loopAddresses)
Reinitialize loopAddresses with all servers in randomize order.
-