类 AbstractSocketConnection
- java.lang.Object
-
- com.mysql.cj.protocol.AbstractSocketConnection
-
- 所有已实现的接口:
SocketConnection
- 直接已知子类:
NativeSocketConnection
public abstract class AbstractSocketConnection extends Object implements SocketConnection
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ExceptionInterceptorexceptionInterceptorprotected Stringhostprotected FullReadInputStreammysqlInputprotected BufferedOutputStreammysqlOutputprotected SocketmysqlSocketprotected intportprotected PropertySetpropertySetprotected SocketFactorysocketFactory
-
构造器概要
构造器 构造器 说明 AbstractSocketConnection()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected SocketFactorycreateSocketFactory(String socketFactoryClassName)voidforceClose()Forcibly closes the underlying socket to MySQL.ExceptionInterceptorgetExceptionInterceptor()StringgetHost()Returns the host this IO is connected toFullReadInputStreamgetMysqlInput()BufferedOutputStreamgetMysqlOutput()SocketgetMysqlSocket()NetworkResourcesgetNetworkResources()intgetPort()PropertySetgetPropertySet()SocketFactorygetSocketFactory()booleanisSSLEstablished()voidsetMysqlInput(FullReadInputStream mysqlInput)voidsetSocketFactory(SocketFactory socketFactory)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.SocketConnection
connect, performTlsHandshake, performTlsHandshake
-
-
-
-
字段详细资料
-
host
protected String host
-
port
protected int port
-
socketFactory
protected SocketFactory socketFactory
-
mysqlSocket
protected Socket mysqlSocket
-
mysqlInput
protected FullReadInputStream mysqlInput
-
mysqlOutput
protected BufferedOutputStream mysqlOutput
-
exceptionInterceptor
protected ExceptionInterceptor exceptionInterceptor
-
propertySet
protected PropertySet propertySet
-
-
方法详细资料
-
getHost
public String getHost()
从接口复制的说明:SocketConnectionReturns the host this IO is connected to- 指定者:
getHost在接口中SocketConnection- 返回:
- host name
-
getPort
public int getPort()
- 指定者:
getPort在接口中SocketConnection
-
getMysqlSocket
public Socket getMysqlSocket()
- 指定者:
getMysqlSocket在接口中SocketConnection
-
getMysqlInput
public FullReadInputStream getMysqlInput() throws IOException
- 指定者:
getMysqlInput在接口中SocketConnection- 抛出:
IOException
-
setMysqlInput
public void setMysqlInput(FullReadInputStream mysqlInput)
- 指定者:
setMysqlInput在接口中SocketConnection
-
getMysqlOutput
public BufferedOutputStream getMysqlOutput() throws IOException
- 指定者:
getMysqlOutput在接口中SocketConnection- 抛出:
IOException
-
isSSLEstablished
public boolean isSSLEstablished()
- 指定者:
isSSLEstablished在接口中SocketConnection
-
getSocketFactory
public SocketFactory getSocketFactory()
- 指定者:
getSocketFactory在接口中SocketConnection
-
setSocketFactory
public void setSocketFactory(SocketFactory socketFactory)
- 指定者:
setSocketFactory在接口中SocketConnection
-
forceClose
public void forceClose()
Forcibly closes the underlying socket to MySQL.- 指定者:
forceClose在接口中SocketConnection
-
getNetworkResources
public NetworkResources getNetworkResources()
- 指定者:
getNetworkResources在接口中SocketConnection
-
getExceptionInterceptor
public ExceptionInterceptor getExceptionInterceptor()
- 指定者:
getExceptionInterceptor在接口中SocketConnection
-
getPropertySet
public PropertySet getPropertySet()
- 指定者:
getPropertySet在接口中SocketConnection
-
createSocketFactory
protected SocketFactory createSocketFactory(String socketFactoryClassName)
-
-