public abstract class AbstractSocketConnection extends java.lang.Object implements SocketConnection
| Modifier and Type | Field and Description |
|---|---|
protected ExceptionInterceptor |
exceptionInterceptor |
protected java.lang.String |
host |
protected FullReadInputStream |
mysqlInput |
protected java.io.BufferedOutputStream |
mysqlOutput |
protected java.net.Socket |
mysqlSocket |
protected int |
port |
protected PropertySet |
propertySet |
protected SocketFactory |
socketFactory |
| Constructor and Description |
|---|
AbstractSocketConnection() |
| Modifier and Type | Method and Description |
|---|---|
protected SocketFactory |
createSocketFactory(java.lang.String socketFactoryClassName) |
void |
forceClose()
Forcibly closes the underlying socket to MySQL.
|
ExceptionInterceptor |
getExceptionInterceptor() |
java.lang.String |
getHost()
Returns the host this IO is connected to
|
FullReadInputStream |
getMysqlInput() |
java.io.BufferedOutputStream |
getMysqlOutput() |
java.net.Socket |
getMysqlSocket() |
NetworkResources |
getNetworkResources() |
int |
getPort() |
PropertySet |
getPropertySet() |
SocketFactory |
getSocketFactory() |
boolean |
isSSLEstablished() |
void |
setMysqlInput(FullReadInputStream mysqlInput) |
void |
setSocketFactory(SocketFactory socketFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, performTlsHandshakeprotected java.lang.String host
protected int port
protected SocketFactory socketFactory
protected java.net.Socket mysqlSocket
protected FullReadInputStream mysqlInput
protected java.io.BufferedOutputStream mysqlOutput
protected ExceptionInterceptor exceptionInterceptor
protected PropertySet propertySet
public java.lang.String getHost()
SocketConnectiongetHost in interface SocketConnectionpublic int getPort()
getPort in interface SocketConnectionpublic java.net.Socket getMysqlSocket()
getMysqlSocket in interface SocketConnectionpublic FullReadInputStream getMysqlInput() throws java.io.IOException
getMysqlInput in interface SocketConnectionjava.io.IOExceptionpublic void setMysqlInput(FullReadInputStream mysqlInput)
setMysqlInput in interface SocketConnectionpublic java.io.BufferedOutputStream getMysqlOutput()
throws java.io.IOException
getMysqlOutput in interface SocketConnectionjava.io.IOExceptionpublic boolean isSSLEstablished()
isSSLEstablished in interface SocketConnectionpublic SocketFactory getSocketFactory()
getSocketFactory in interface SocketConnectionpublic void setSocketFactory(SocketFactory socketFactory)
setSocketFactory in interface SocketConnectionpublic void forceClose()
forceClose in interface SocketConnectionpublic NetworkResources getNetworkResources()
getNetworkResources in interface SocketConnectionpublic ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor in interface SocketConnectionpublic PropertySet getPropertySet()
getPropertySet in interface SocketConnectionprotected SocketFactory createSocketFactory(java.lang.String socketFactoryClassName)