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, wait
connect, performTlsHandshake, performTlsHandshake
protected 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()
SocketConnection
getHost
in interface SocketConnection
public int getPort()
getPort
in interface SocketConnection
public java.net.Socket getMysqlSocket()
getMysqlSocket
in interface SocketConnection
public FullReadInputStream getMysqlInput() throws java.io.IOException
getMysqlInput
in interface SocketConnection
java.io.IOException
public void setMysqlInput(FullReadInputStream mysqlInput)
setMysqlInput
in interface SocketConnection
public java.io.BufferedOutputStream getMysqlOutput() throws java.io.IOException
getMysqlOutput
in interface SocketConnection
java.io.IOException
public boolean isSSLEstablished()
isSSLEstablished
in interface SocketConnection
public SocketFactory getSocketFactory()
getSocketFactory
in interface SocketConnection
public void setSocketFactory(SocketFactory socketFactory)
setSocketFactory
in interface SocketConnection
public void forceClose()
forceClose
in interface SocketConnection
public NetworkResources getNetworkResources()
getNetworkResources
in interface SocketConnection
public ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor
in interface SocketConnection
public PropertySet getPropertySet()
getPropertySet
in interface SocketConnection
protected SocketFactory createSocketFactory(java.lang.String socketFactoryClassName)