Class AFUNIXDatabaseSocketFactory

  • All Implemented Interfaces:
    com.mysql.jdbc.SocketFactory

    public class AFUNIXDatabaseSocketFactory
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket afterHandshake()  
      java.net.Socket beforeHandshake()  
      java.net.Socket connect​(java.lang.String host, int portNumber, java.util.Properties props)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AFUNIXDatabaseSocketFactory

        public AFUNIXDatabaseSocketFactory()
    • Method Detail

      • afterHandshake

        public java.net.Socket afterHandshake()
                                       throws java.net.SocketException,
                                              java.io.IOException
        Specified by:
        afterHandshake in interface com.mysql.jdbc.SocketFactory
        Throws:
        java.net.SocketException
        java.io.IOException
      • beforeHandshake

        public java.net.Socket beforeHandshake()
                                        throws java.net.SocketException,
                                               java.io.IOException
        Specified by:
        beforeHandshake in interface com.mysql.jdbc.SocketFactory
        Throws:
        java.net.SocketException
        java.io.IOException
      • connect

        public java.net.Socket connect​(java.lang.String host,
                                       int portNumber,
                                       java.util.Properties props)
                                throws java.net.SocketException,
                                       java.io.IOException
        Specified by:
        connect in interface com.mysql.jdbc.SocketFactory
        Throws:
        java.net.SocketException
        java.io.IOException