public class NamedPipeSocketFactory extends java.lang.Object implements SocketFactory, SocketMetadata
| Modifier and Type | Class and Description |
|---|---|
(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
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMED_PIPE_PROP_NAME |
| Constructor and Description |
|---|
NamedPipeSocketFactory()
Constructor for NamedPipeSocketFactory.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isLocallyConnected(ConnectionImpl conn) |
public static final java.lang.String NAMED_PIPE_PROP_NAME
public NamedPipeSocketFactory()
public java.net.Socket afterHandshake()
throws java.net.SocketException,
java.io.IOException
SocketFactoryafterHandshake in interface SocketFactoryjava.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occursSocketFactory.afterHandshake()public java.net.Socket beforeHandshake()
throws java.net.SocketException,
java.io.IOException
SocketFactorybeforeHandshake in interface SocketFactoryjava.net.SocketException - if a socket error occursjava.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
SocketFactorycom.mysql.jdbc.StandardSocketFactory Implementing classes
are responsible for handling synchronization of this method (if needed).connect in interface SocketFactoryhost - 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 occursjava.io.IOException - if an I/O error occurscom.mysql.jdbc.SocketFactory#connect(String, Properties)public boolean isLocallyConnected(ConnectionImpl conn) throws java.sql.SQLException
isLocallyConnected in interface SocketMetadatajava.sql.SQLException