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. addressesMethods in org.mariadb.jdbc that return HostAddress Modifier and Type Method Description private static HostAddressHostAddress. parseParameterHostAddress(java.lang.String str)private static HostAddressHostAddress. 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.StringHostAddress. toString(HostAddress[] addrs)ToString implementation of addresses.Method parameters in org.mariadb.jdbc with type arguments of type HostAddress Modifier and Type Method Description voidUrlParser. setHostAddresses(java.util.List<HostAddress> addresses)static java.lang.StringHostAddress. 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 voidSendHandshakeResponsePacket. 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 voidSendHandshakeResponsePacket. 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. blacklistList 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 voidAbstractMastersListener. 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.voidListener. addToBlacklist(HostAddress hostAddress)voidAbstractMastersListener. removeFromBlacklist(HostAddress hostAddress)After a successfull connection, permit to remove a hostAddress from blacklist.voidListener. removeFromBlacklist(HostAddress hostAddress)voidAbstractMastersListener. throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, java.sql.SQLException queryException, boolean reconnected)Throw a human readable message after a failoverException.voidListener. 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 HostAddressAuroraListener. clusterHostAddressMethods in org.mariadb.jdbc.internal.failover.impl that return HostAddress Modifier and Type Method Description private HostAddressAuroraListener. findClusterHostAddress(UrlParser urlParser)Retrieves the cluster host address from the UrlParser instance.HostAddressAuroraListener. getClusterHostAddress()HostAddressAuroraListener. 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 HostAddressAuroraListener. 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 HostAddressAuroraListener. 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 HostAddressAuroraListener. 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 HostAddressAbstractConnectProtocol. currentHostMethods in org.mariadb.jdbc.internal.protocol that return HostAddress Modifier and Type Method Description HostAddressAbstractConnectProtocol. getHostAddress()HostAddressProtocol. getHostAddress()Methods in org.mariadb.jdbc.internal.protocol with parameters of type HostAddress Modifier and Type Method Description private static voidAuroraProtocol. searchProbableMaster(AuroraListener listener, GlobalStateInfo globalInfo, HostAddress probableMaster)Connect aurora probable master.voidAbstractConnectProtocol. setHostAddress(HostAddress host)voidProtocol. setHostAddress(HostAddress hostAddress)Method parameters in org.mariadb.jdbc.internal.protocol with type arguments of type HostAddress Modifier and Type Method Description static voidAuroraProtocol. loop(AuroraListener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter initialSearchFilter)loop until found the failed connection.static voidMasterProtocol. loop(Listener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter searchFilter)loop until found the failed connection.static voidMastersSlavesProtocol. loop(MastersSlavesListener listener, GlobalStateInfo globalInfo, java.util.List<HostAddress> addresses, SearchFilter searchFilter)loop until found the failed connection.private static voidAuroraProtocol. resetHostList(AuroraListener listener, java.util.Deque<HostAddress> loopAddresses)Reinitialize loopAddresses with all hosts : all servers in randomize order with cluster address.private static voidMasterProtocol. resetHostList(Listener listener, java.util.Deque<HostAddress> loopAddresses)Reinitialize loopAddresses with all hosts : all servers in randomize order without connected host.private static voidMastersSlavesProtocol. resetHostList(MastersSlavesListener listener, java.util.Deque<HostAddress> loopAddresses)Reinitialize loopAddresses with all servers in randomize order.
-