Package org.apache.hadoop.net
Class StandardSocketFactory
java.lang.Object
javax.net.SocketFactory
org.apache.hadoop.net.StandardSocketFactory
Specialized SocketFactory to create sockets with a SOCKS proxy
-
Constructor Summary
ConstructorsConstructorDescriptionDefault empty constructor (for use with the reflection API). -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String host, int port) createSocket(String host, int port, InetAddress localHostAddr, int localPort) createSocket(InetAddress addr, int port) createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort) booleaninthashCode()Methods inherited from class javax.net.SocketFactory
getDefault
-
Constructor Details
-
StandardSocketFactory
public StandardSocketFactory()Default empty constructor (for use with the reflection API).
-
-
Method Details
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHostAddr, int localPort) throws IOException, UnknownHostException - Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
equals
-
hashCode
public int hashCode()
-