public class NativeSocketConnection extends AbstractSocketConnection implements SocketConnection
exceptionInterceptor, host, mysqlInput, mysqlOutput, mysqlSocket, port, propertySet, socketFactory
Constructor and Description |
---|
NativeSocketConnection() |
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String hostName,
int portNumber,
PropertySet propSet,
ExceptionInterceptor excInterceptor,
Log log,
int loginTimeout)
Connect to the MySQL server and setup a stream connection.
|
void |
performTlsHandshake(ServerSession serverSession) |
void |
performTlsHandshake(ServerSession serverSession,
Log log)
Start a TLS handshake
|
createSocketFactory, forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
public void connect(java.lang.String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)
SocketConnection
connect
in interface SocketConnection
hostName
- the hostname to connect toportNumber
- the port number that the server is listening onpropSet
- the PropertySet with required connection optionsexcInterceptor
- exception interceptorlog
- loggerloginTimeout
- the driver login time limit in millisecondspublic void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
performTlsHandshake
in interface SocketConnection
SSLParamsException
FeatureNotAvailableException
java.io.IOException
public void performTlsHandshake(ServerSession serverSession, Log log) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
SocketConnection
performTlsHandshake
in interface SocketConnection
serverSession
- server session state objectlog
- loggerSSLParamsException
- in case of failureFeatureNotAvailableException
- in case of failurejava.io.IOException
- in case of failure