|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.net.SocketFactory org.apache.hadoop.net.SocksSocketFactory
@InterfaceAudience.Public @InterfaceStability.Evolving public class SocksSocketFactory
Specialized SocketFactory to create sockets with a SOCKS proxy
Constructor Summary | |
---|---|
SocksSocketFactory()
Default empty constructor (for use with the reflection API). |
|
SocksSocketFactory(Proxy proxy)
Constructor with a supplied Proxy |
Method Summary | |
---|---|
Socket |
createSocket()
|
Socket |
createSocket(InetAddress addr,
int port)
|
Socket |
createSocket(InetAddress addr,
int port,
InetAddress localHostAddr,
int localPort)
|
Socket |
createSocket(String host,
int port)
|
Socket |
createSocket(String host,
int port,
InetAddress localHostAddr,
int localPort)
|
boolean |
equals(Object obj)
|
Configuration |
getConf()
Return the configuration used by this object. |
int |
hashCode()
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
Methods inherited from class javax.net.SocketFactory |
---|
getDefault |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocksSocketFactory()
public SocksSocketFactory(Proxy proxy)
proxy
- the proxy to use to create socketsMethod Detail |
---|
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localHostAddr, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Configuration getConf()
Configurable
getConf
in interface Configurable
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |