Top Fields Constructors Methods
com.mysql.cj.protocol

public abstract Class AbstractSocketConnection

extends Object
implements SocketConnection
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.SocketConnection
Known Direct Subclasses
com.mysql.cj.protocol.a.NativeSocketConnection
Imports
java.io.BufferedOutputStream, .IOException, java.net.Socket, com.mysql.cj.Messages, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.ExceptionFactory, .ExceptionInterceptor, .UnableToConnectException, .WrongArgumentException, com.mysql.cj.util.Util, com.mysql.jdbc.SocketFactoryWrapper

Field Summary

Modifier and TypeField and Description
protected ExceptionInterceptor
protected String
protected FullReadInputStream
protected BufferedOutputStream
protected Socket
protected int
protected PropertySet
protected SocketFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected SocketFactory
createSocketFactory(String socketFactoryClassName)

public void
forceClose()

Implements com.mysql.cj.protocol.SocketConnection.forceClose.

Forcibly closes the underlying socket to MySQL.

public ExceptionInterceptor
public String
getHost()

Implements com.mysql.cj.protocol.SocketConnection.getHost.

Returns the host this IO is connected to

public FullReadInputStream
public BufferedOutputStream
public Socket
public NetworkResources
public int
public PropertySet
public SocketFactory
public boolean
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exceptionInterceptorback to summary
protected ExceptionInterceptor exceptionInterceptor
hostback to summary
protected String host
mysqlInputback to summary
protected FullReadInputStream mysqlInput
mysqlOutputback to summary
protected BufferedOutputStream mysqlOutput
mysqlSocketback to summary
protected Socket mysqlSocket
portback to summary
protected int port
propertySetback to summary
protected PropertySet propertySet
socketFactoryback to summary
protected SocketFactory socketFactory

Constructor Detail

AbstractSocketConnectionback to summary
public AbstractSocketConnection()

Method Detail

createSocketFactoryback to summary
protected SocketFactory createSocketFactory(String socketFactoryClassName)
Annotations
@SuppressWarnings:deprecation
forceCloseback to summary
public void forceClose()

Implements com.mysql.cj.protocol.SocketConnection.forceClose.

Forcibly closes the underlying socket to MySQL.

Annotations
@Override
getExceptionInterceptorback to summary
public ExceptionInterceptor getExceptionInterceptor()

Implements com.mysql.cj.protocol.SocketConnection.getExceptionInterceptor.

Annotations
@Override
getHostback to summary
public String getHost()

Implements com.mysql.cj.protocol.SocketConnection.getHost.

Doc from com.mysql.cj.protocol.SocketConnection.getHost.

Returns the host this IO is connected to

Returns:String

host name

Annotations
@Override
getMysqlInputback to summary
public FullReadInputStream getMysqlInput() throws IOException

Implements com.mysql.cj.protocol.SocketConnection.getMysqlInput.

Annotations
@Override
getMysqlOutputback to summary
public BufferedOutputStream getMysqlOutput() throws IOException

Implements com.mysql.cj.protocol.SocketConnection.getMysqlOutput.

Annotations
@Override
getMysqlSocketback to summary
public Socket getMysqlSocket()

Implements com.mysql.cj.protocol.SocketConnection.getMysqlSocket.

Annotations
@Override
getNetworkResourcesback to summary
public NetworkResources getNetworkResources()

Implements com.mysql.cj.protocol.SocketConnection.getNetworkResources.

Annotations
@Override
getPortback to summary
public int getPort()

Implements com.mysql.cj.protocol.SocketConnection.getPort.

Annotations
@Override
getPropertySetback to summary
public PropertySet getPropertySet()

Implements com.mysql.cj.protocol.SocketConnection.getPropertySet.

Annotations
@Override
getSocketFactoryback to summary
public SocketFactory getSocketFactory()

Implements com.mysql.cj.protocol.SocketConnection.getSocketFactory.

Annotations
@Override
isSSLEstablishedback to summary
public boolean isSSLEstablished()

Implements com.mysql.cj.protocol.SocketConnection.isSSLEstablished.

Annotations
@Override
setMysqlInputback to summary
public void setMysqlInput(FullReadInputStream mysqlInput)

Implements com.mysql.cj.protocol.SocketConnection.setMysqlInput.

Annotations
@Override
setSocketFactoryback to summary
public void setSocketFactory(SocketFactory socketFactory)

Implements com.mysql.cj.protocol.SocketConnection.setSocketFactory.

Annotations
@Override