java.lang.Object
org.newsclub.net.mysql.AFUNIXDatabaseSocketFactory
- All Implemented Interfaces:
com.mysql.jdbc.SocketFactory
Connect to mysql databases (and compatibles) using UNIX domain sockets.
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.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AFUNIXDatabaseSocketFactory
public AFUNIXDatabaseSocketFactory()Creates a new instance.
-
-
Method Details
-
afterHandshake
- Specified by:
afterHandshake
in interfacecom.mysql.jdbc.SocketFactory
- Throws:
SocketException
IOException
-
beforeHandshake
- Specified by:
beforeHandshake
in interfacecom.mysql.jdbc.SocketFactory
- Throws:
SocketException
IOException
-
connect
public Socket connect(String host, int portNumber, Properties props) throws SocketException, IOException - Specified by:
connect
in interfacecom.mysql.jdbc.SocketFactory
- Throws:
SocketException
IOException
-