|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketFactory
Interface to allow pluggable socket creation in the driver
Method Summary | |
---|---|
java.net.Socket |
afterHandshake()
Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake. |
java.net.Socket |
beforeHandshake()
Called by the driver before issuing the MySQL protocol handshake. |
java.net.Socket |
connect(java.lang.String host,
int portNumber,
java.util.Properties props)
Creates a new socket using the given properties. |
Method Detail |
---|
java.net.Socket afterHandshake() throws java.net.SocketException, java.io.IOException
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occursjava.net.Socket beforeHandshake() throws java.net.SocketException, java.io.IOException
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occursjava.net.Socket connect(java.lang.String host, int portNumber, java.util.Properties props) throws java.net.SocketException, java.io.IOException
com.mysql.jdbc.StandardSocketFactory
Implementing classes
are responsible for handling synchronization of this method (if needed).
host
- the hostname passed in the JDBC URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt.portNumber
- the port number to connect to (if required).props
- properties passed to the driver via the URL and/or properties
instance.
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |