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) |
default void |
performTlsHandshake(ServerSession serverSession,
Log log)
Start a TLS handshake
|
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
SSLParamsExceptionFeatureNotAvailableExceptionjava.io.IOExceptiondefault void performTlsHandshake(ServerSession serverSession, Log log) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
serverSession - server session state objectlog - loggerSSLParamsExceptionFeatureNotAvailableExceptionjava.io.IOExceptionvoid forceClose()
NetworkResources getNetworkResources()
java.lang.String getHost()
int getPort()
java.net.Socket getMysqlSocket()
throws java.io.IOException
java.io.IOExceptionFullReadInputStream getMysqlInput() throws java.io.IOException
java.io.IOExceptionvoid setMysqlInput(FullReadInputStream mysqlInput)
java.io.BufferedOutputStream getMysqlOutput()
throws java.io.IOException
java.io.IOExceptionboolean isSSLEstablished()
SocketFactory getSocketFactory()
void setSocketFactory(SocketFactory socketFactory)
ExceptionInterceptor getExceptionInterceptor()
PropertySet getPropertySet()