|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.NamedPipeSocketFactory
public class NamedPipeSocketFactory
A socket factory for named pipes (on Windows)
Nested Class Summary | |
---|---|
(package private) class |
NamedPipeSocketFactory.NamedPipeSocket
A socket that encapsulates named pipes on Windows |
(package private) class |
NamedPipeSocketFactory.RandomAccessFileInputStream
Enables OutputStream-type functionality for a RandomAccessFile |
(package private) class |
NamedPipeSocketFactory.RandomAccessFileOutputStream
Enables OutputStream-type functionality for a RandomAccessFile |
Constructor Summary | |
---|---|
NamedPipeSocketFactory()
Constructor for NamedPipeSocketFactory. |
Method Summary | |
---|---|
java.net.Socket |
afterHandshake()
Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake. |
java.net.Socket |
beforeHandshake()
Called by the driver before issuing the MySQL protocol handshake. |
java.net.Socket |
connect(java.lang.String host,
int portNumber,
java.util.Properties props)
Creates a new socket using the given properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedPipeSocketFactory()
Method Detail |
---|
public java.net.Socket afterHandshake() throws java.net.SocketException, java.io.IOException
SocketFactory
afterHandshake
in interface SocketFactory
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occursSocketFactory.afterHandshake()
public java.net.Socket beforeHandshake() throws java.net.SocketException, java.io.IOException
SocketFactory
beforeHandshake
in interface SocketFactory
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occursSocketFactory.beforeHandshake()
public java.net.Socket connect(java.lang.String host, int portNumber, java.util.Properties props) throws java.net.SocketException, java.io.IOException
SocketFactory
com.mysql.jdbc.StandardSocketFactory
Implementing classes
are responsible for handling synchronization of this method (if needed).
connect
in interface SocketFactory
host
- 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.portNumber
- the port number to connect to (if required).props
- properties passed to the driver via the URL and/or properties
instance.
java.net.SocketException
- if a socket error occurs
java.io.IOException
- if an I/O error occurscom.mysql.jdbc.SocketFactory#connect(String, Properties)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |