References Deprecated
SocketFactory is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
Note
This SocketFactory currently implements the "old" Connector/J SocketFactory. This may change in the future. For the time being, see AFUNIXDatabaseSocketFactoryCJ to forcibly use the new "CJ"-style SocketFactory.
AFUNIXDatabaseSocketFactoryCJ
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | afterHandshake()
Implements com. Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake. |
| public Socket | beforeHandshake()
Implements com. Called by the driver before issuing the MySQL protocol handshake. |
| public Socket | connect(String
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. host, int the port number to connect to (if required). portNumber, Properties properties passed to the driver via the URL and/or properties
instance. props)Implements com. Creates a new socket using the given properties. |
| socket | back to summary |
|---|---|
| private Socket socket | |
| AFUNIXDatabaseSocketFactory | back to summary |
|---|---|
| public AFUNIXDatabaseSocketFactory() Creates a new instance. | |
| afterHandshake | back to summary |
|---|---|
| public Socket afterHandshake() throws SocketException, IOException Implements com. Doc from com. Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake.
| |
| beforeHandshake | back to summary |
|---|---|
| public Socket beforeHandshake() throws SocketException, IOException Implements com. Doc from com. Called by the driver before issuing the MySQL protocol handshake. Should return the socket instance that should be used during the handshake.
| |
| connect | back to summary |
|---|---|
| public Socket connect(String host, int portNumber, Properties props) throws SocketException, IOException Implements com. Doc from com. Creates a new socket using the given properties. Properties are parsed by
the driver from the URL. All properties other than sensitive ones (user
and password) are passed to this method. The driver will instantiate the
socket factory with the class name given in the property
"socketFactory", where the standard is
| |