public interface SocketConnection
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String host,
int port,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor,
Log log,
int loginTimeout)
Connect to the MySQL server and setup a stream connection.
|
void |
forceClose() |
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 |
performTlsHandshake(ServerSession serverSession) |
void |
setMysqlInput(FullReadInputStream mysqlInput) |
void |
setSocketFactory(SocketFactory socketFactory) |
void connect(java.lang.String host, int port, PropertySet propertySet, ExceptionInterceptor exceptionInterceptor, Log log, int loginTimeout)
host
- the hostname to connect toport
- the port number that the server is listening onpropertySet
- the PropertySet with required connection optionsexceptionInterceptor
- exception interceptorlog
- loggerloginTimeout
- the driver login time limit in millisecondsvoid performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
SSLParamsException
FeatureNotAvailableException
java.io.IOException
void forceClose()
NetworkResources getNetworkResources()
java.lang.String getHost()
int getPort()
java.net.Socket getMysqlSocket() throws java.io.IOException
java.io.IOException
FullReadInputStream getMysqlInput() throws java.io.IOException
java.io.IOException
void setMysqlInput(FullReadInputStream mysqlInput)
java.io.BufferedOutputStream getMysqlOutput() throws java.io.IOException
java.io.IOException
boolean isSSLEstablished()
SocketFactory getSocketFactory()
void setSocketFactory(SocketFactory socketFactory)
ExceptionInterceptor getExceptionInterceptor()
PropertySet getPropertySet()