Uses of Interface
org.mariadb.jdbc.internal.protocol.Protocol
Packages that use Protocol
Package
Description
-
Uses of Protocol in org.mariadb.jdbc
Fields in org.mariadb.jdbc declared as ProtocolModifier and TypeFieldDescriptionprivate final ProtocolMariaDbConnection.protocolthe protocol to communicate with.protected ProtocolMariaDbStatement.protocolthe protocol used to talk to the server.Methods in org.mariadb.jdbc that return ProtocolConstructors in org.mariadb.jdbc with parameters of type ProtocolModifierConstructorDescriptionMariaDbConnection(Protocol protocol) Creates a new connection with a given protocol and query factory. -
Uses of Protocol in org.mariadb.jdbc.internal.com.read.dao
Methods in org.mariadb.jdbc.internal.com.read.dao with parameters of type ProtocolModifier and TypeMethodDescriptionCmdInformation.getBatchGeneratedKeys(Protocol protocol) CmdInformationBatch.getBatchGeneratedKeys(Protocol protocol) CmdInformationMultiple.getBatchGeneratedKeys(Protocol protocol) CmdInformationSingle.getBatchGeneratedKeys(Protocol protocol) CmdInformation.getGeneratedKeys(Protocol protocol) CmdInformationBatch.getGeneratedKeys(Protocol protocol) Return GeneratedKeys containing insert ids.CmdInformationMultiple.getGeneratedKeys(Protocol protocol) Return GeneratedKeys containing insert ids.CmdInformationSingle.getGeneratedKeys(Protocol protocol) Get generated Keys.Results.getGeneratedKeys(Protocol protocol) Send a resultSet that contain auto generated keys.booleanResults.getMoreResults(int current, Protocol protocol) Position to next resultSet.booleanResults.isFullyLoaded(Protocol protocol) Indicate if result contain result-set that is still streaming from server.voidLoad fully current results. -
Uses of Protocol in org.mariadb.jdbc.internal.com.read.resultset
Fields in org.mariadb.jdbc.internal.com.read.resultset declared as ProtocolMethods in org.mariadb.jdbc.internal.com.read.resultset with parameters of type ProtocolModifier and TypeMethodDescriptionstatic ResultSetSelectResultSet.createGeneratedData(long[] data, Protocol protocol, boolean findColumnReturnsOne) Create a result set from given data.static ResultSetSelectResultSet.createResultSet(String[] columnNames, ColumnType[] columnTypes, String[][] data, Protocol protocol) Create a result set from given data.Constructors in org.mariadb.jdbc.internal.com.read.resultset with parameters of type ProtocolModifierConstructorDescriptionSelectResultSet(ColumnInformation[] columnInformation, List<byte[]> resultSet, Protocol protocol, int resultSetScrollType) Create filled result-set.SelectResultSet(ColumnInformation[] columnInformation, Results results, Protocol protocol, PacketInputStream reader, boolean callableResult, boolean eofDeprecated) Create Streaming resultSet.UpdatableResultSet(ColumnInformation[] columnsInformation, Results results, Protocol protocol, PacketInputStream reader, boolean callableResult, boolean eofDeprecated) Constructor. -
Uses of Protocol in org.mariadb.jdbc.internal.com.send
Fields in org.mariadb.jdbc.internal.com.send declared as ProtocolConstructors in org.mariadb.jdbc.internal.com.send with parameters of type Protocol -
Uses of Protocol in org.mariadb.jdbc.internal.failover
Fields in org.mariadb.jdbc.internal.failover declared as ProtocolFields in org.mariadb.jdbc.internal.failover with type parameters of type ProtocolModifier and TypeFieldDescriptionprotected final AtomicReference<Protocol> AbstractMastersSlavesListener.waitNewMasterProtocolprotected final AtomicReference<Protocol> AbstractMastersSlavesListener.waitNewSecondaryProtocolMethods in org.mariadb.jdbc.internal.failover that return ProtocolModifier and TypeMethodDescriptionAbstractMastersListener.getCurrentProtocol()Listener.getCurrentProtocol()Methods in org.mariadb.jdbc.internal.failover with parameters of type ProtocolModifier and TypeMethodDescriptionvoidAbstractMastersListener.abortConnection(Protocol protocol) Utility to force close existing connection.private static SQLExceptionFailoverProxy.addHostInformationToException(SQLException exception, Protocol protocol) Add Host information ("on HostAddress...") to exception.voidAbstractMastersListener.closeConnection(Protocol protocol) Utility to close existing connection.voidListener.foundActiveMaster(Protocol protocol) abstract voidAbstractMastersSlavesListener.foundActiveSecondary(Protocol newSecondaryProtocol) AbstractMastersListener.handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean isClosed) Call when a failover is detected on master connection.AbstractMastersSlavesListener.handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean isClosed) Handle failover on master or slave connection.Listener.handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean wasClosed) private ObjectFailoverProxy.handleFailOver(SQLException qe, Method method, Object[] args, Protocol protocol, boolean isClosed) After a connection exception, launch failover.protected booleanAbstractMastersListener.pingMasterProtocol(Protocol protocol) protected voidAbstractMastersListener.setSessionReadOnly(boolean readOnly, Protocol protocol) voidAbstractMastersListener.syncConnection(Protocol from, Protocol to) When switching between 2 connections, report existing connection parameter to the new used connection.voidListener.syncConnection(Protocol from, Protocol to) -
Uses of Protocol in org.mariadb.jdbc.internal.failover.impl
Fields in org.mariadb.jdbc.internal.failover.impl declared as ProtocolModifier and TypeFieldDescriptionprotected ProtocolMastersSlavesListener.masterProtocolprotected ProtocolMastersSlavesListener.secondaryProtocolMethods in org.mariadb.jdbc.internal.failover.impl with parameters of type ProtocolModifier and TypeMethodDescriptionprivate voidMastersSlavesListener.blackListAndCloseConnection(Protocol protocol) voidMastersFailoverListener.foundActiveMaster(Protocol protocol) method called when a new Master connection is found after a fallback.voidMastersSlavesListener.foundActiveMaster(Protocol newMasterProtocol) Method called when a new Master connection is found after a fallback.voidMastersSlavesListener.foundActiveSecondary(Protocol newSecondaryProtocol) Method called when a new secondary connection is found after a fallback.AuroraListener.getCurrentEndpointIdentifiers(Protocol protocol) Retrieves all endpoints of a cluster from the appropriate database table.voidMastersSlavesListener.lockAndSwitchMaster(Protocol newMasterProtocol) Use the parameter newMasterProtocol as new current master connection.voidMastersSlavesListener.lockAndSwitchSecondary(Protocol newSecondaryProtocol) Use the parameter newSecondaryProtocol as new current secondary connection.private booleanMastersSlavesListener.pingSecondaryProtocol(Protocol protocol) Ping secondary protocol.voidAuroraListener.retrieveAllEndpointsAndSet(Protocol protocol) Retrieves the information necessary to add a new endpoint.AuroraListener.searchByStartName(Protocol secondaryProtocol, 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, List<HostAddress> loopAddress) Aurora replica doesn't have the master endpoint but the master instance name. -
Uses of Protocol in org.mariadb.jdbc.internal.logging
Fields in org.mariadb.jdbc.internal.logging declared as ProtocolConstructors in org.mariadb.jdbc.internal.logging with parameters of type ProtocolModifierConstructorDescriptionProtocolLoggingProxy(Protocol protocol, Options options) Constructor. -
Uses of Protocol in org.mariadb.jdbc.internal.protocol
Classes in org.mariadb.jdbc.internal.protocol that implement ProtocolModifier and TypeClassDescriptionclassclassclassclassclassFields in org.mariadb.jdbc.internal.protocol declared as ProtocolModifier and TypeFieldDescriptionprivate final ProtocolAbstractMultiSend.protocolprivate final ProtocolAsyncMultiRead.protocolConstructors in org.mariadb.jdbc.internal.protocol with parameters of type ProtocolModifierConstructorDescriptionAbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, List<String> queries) Bulk execute for statement.executeBatch().AbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, ClientPrepareResult clientPrepareResult, List<ParameterHolder[]> parametersList) Bulk execute for client-side PreparedStatement.executeBatch (no prepare).AbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, ServerPrepareResult serverPrepareResult, List<ParameterHolder[]> parametersList, boolean readPrepareStmtResult, String sql) Bulk execute for Server PreparedStatement.executeBatch (when no COM_MULTI)AsyncMultiRead(ComStmtPrepare comStmtPrepare, BulkStatus status, Protocol protocol, boolean readPrepareStmtResult, AbstractMultiSend bulkSend, int paramCount, Results results, List<ParameterHolder[]> parametersList, List<String> queries, PrepareResult prepareResult) Read results async to avoid local and remote networking stack buffer overflow "lock". -
Uses of Protocol in org.mariadb.jdbc.internal.util
Fields in org.mariadb.jdbc.internal.util declared as ProtocolMethods in org.mariadb.jdbc.internal.util that return ProtocolModifier and TypeMethodDescriptionprivate static ProtocolUtils.getProxyLoggingIfNeeded(UrlParser urlParser, Protocol protocol) static ProtocolUtils.retrieveProxy(UrlParser urlParser, GlobalStateInfo globalInfo) Retrieve protocol corresponding to the failover options.Methods in org.mariadb.jdbc.internal.util with parameters of type ProtocolModifier and TypeMethodDescriptionprivate static ProtocolUtils.getProxyLoggingIfNeeded(UrlParser urlParser, Protocol protocol) static StringEscape sql String.static ServerPrepareStatementCacheServerPrepareStatementCache.newInstance(int size, Protocol protocol) private static StringUtils.replaceFunctionParameter(String functionString, Protocol protocol) Helper function to replace function parameters in escaped string.private static StringUtils.resolveEscapes(String escaped, Protocol protocol) Constructors in org.mariadb.jdbc.internal.util with parameters of type Protocol -
Uses of Protocol in org.mariadb.jdbc.internal.util.dao
Fields in org.mariadb.jdbc.internal.util.dao declared as ProtocolMethods in org.mariadb.jdbc.internal.util.dao that return ProtocolMethods in org.mariadb.jdbc.internal.util.dao with parameters of type ProtocolModifier and TypeMethodDescriptionvoidUpdate information after a failover.Constructors in org.mariadb.jdbc.internal.util.dao with parameters of type ProtocolModifierConstructorDescriptionServerPrepareResult(String sql, int statementId, ColumnInformation[] columns, ColumnInformation[] parameters, Protocol unProxiedProtocol) PrepareStatement Result object.