类 NativeSocketConnection
- java.lang.Object
-
- com.mysql.cj.protocol.AbstractSocketConnection
-
- com.mysql.cj.protocol.a.NativeSocketConnection
-
- 所有已实现的接口:
SocketConnection
public class NativeSocketConnection extends AbstractSocketConnection implements SocketConnection
-
-
字段概要
-
从类继承的字段 com.mysql.cj.protocol.AbstractSocketConnection
exceptionInterceptor, host, mysqlInput, mysqlOutput, mysqlSocket, port, propertySet, socketFactory
-
-
构造器概要
构造器 构造器 说明 NativeSocketConnection()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidconnect(String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)Connect to the MySQL server and setup a stream connection.voidperformTlsHandshake(ServerSession serverSession)voidperformTlsHandshake(ServerSession serverSession, Log log)Start a TLS handshake-
从类继承的方法 com.mysql.cj.protocol.AbstractSocketConnection
createSocketFactory, forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.SocketConnection
forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
-
-
-
-
方法详细资料
-
connect
public void connect(String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)
从接口复制的说明:SocketConnectionConnect to the MySQL server and setup a stream connection.- 指定者:
connect在接口中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 milliseconds
-
performTlsHandshake
public void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, IOException
-
performTlsHandshake
public void performTlsHandshake(ServerSession serverSession, Log log) throws SSLParamsException, FeatureNotAvailableException, IOException
从接口复制的说明:SocketConnectionStart a TLS handshake- 指定者:
performTlsHandshake在接口中SocketConnection- 参数:
serverSession- server session state objectlog- logger- 抛出:
SSLParamsExceptionFeatureNotAvailableExceptionIOException
-
-