- java.lang.Object
-
- org.newsclub.net.mysql.AFUNIXDatabaseSocketFactory
-
- All Implemented Interfaces:
com.mysql.jdbc.SocketFactory
public class AFUNIXDatabaseSocketFactory extends Object implements 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:
AFUNIXDatabaseSocketFactoryCJ
-
-
Constructor Summary
Constructors Constructor Description AFUNIXDatabaseSocketFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketafterHandshake()SocketbeforeHandshake()Socketconnect(String host, int portNumber, Properties props)
-
-
-
Method Detail
-
afterHandshake
public Socket afterHandshake() throws SocketException, IOException
- Specified by:
afterHandshakein interfacecom.mysql.jdbc.SocketFactory- Throws:
SocketExceptionIOException
-
beforeHandshake
public Socket beforeHandshake() throws SocketException, IOException
- Specified by:
beforeHandshakein interfacecom.mysql.jdbc.SocketFactory- Throws:
SocketExceptionIOException
-
connect
public Socket connect(String host, int portNumber, Properties props) throws SocketException, IOException
- Specified by:
connectin interfacecom.mysql.jdbc.SocketFactory- Throws:
SocketExceptionIOException
-
-