类 NamedPipeSocketFactory

    • 构造器详细资料

      • NamedPipeSocketFactory

        public NamedPipeSocketFactory()
        Constructor for NamedPipeSocketFactory.
    • 方法详细资料

      • performTlsHandshake

        public <T extends Closeable> T performTlsHandshake​(SocketConnection socketConnection,
                                                           ServerSession serverSession)
                                                    throws IOException
        从接口复制的说明: SocketFactory
        If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake.
        指定者:
        performTlsHandshake 在接口中 SocketFactory
        类型参数:
        T - result type
        参数:
        socketConnection - current SocketConnection
        serverSession - current ServerSession
        返回:
        SSL socket
        抛出:
        IOException - if an I/O error occurs
      • performTlsHandshake

        public <T extends Closeable> T performTlsHandshake​(SocketConnection socketConnection,
                                                           ServerSession serverSession,
                                                           Log log)
                                                    throws IOException
        从接口复制的说明: SocketFactory
        If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake.
        指定者:
        performTlsHandshake 在接口中 SocketFactory
        类型参数:
        T - result type
        参数:
        socketConnection - current SocketConnection
        serverSession - current ServerSession
        log - logger
        返回:
        SSL socket
        抛出:
        IOException - if an I/O error occurs
      • connect

        public <T extends Closeable> T connect​(String host,
                                               int portNumber,
                                               PropertySet props,
                                               int loginTimeout)
                                        throws IOException
        从接口复制的说明: SocketFactory
        Creates a new socket or channel 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 com.mysql.cj.protocol.StandardSocketFactory Implementing classes are responsible for handling synchronization of this method (if needed).
        指定者:
        connect 在接口中 SocketFactory
        类型参数:
        T - result type
        参数:
        host - the hostname passed in the 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.
        loginTimeout - login timeout in milliseconds
        返回:
        a socket connected to the given host
        抛出:
        IOException - if an I/O error occurs