Package io.trino.hadoop
Class SocksSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- io.trino.hadoop.SocksSocketFactory
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
public class SocksSocketFactory extends SocketFactory implements org.apache.hadoop.conf.Configurable
SocketFactory to create sockets with SOCKS proxy. The created sockets have a SocketChannel as required by the HDFS client.
-
-
Constructor Summary
Constructors Constructor Description SocksSocketFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket()SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, InetAddress localHostAddr, int localPort)SocketcreateSocket(InetAddress addr, int port)SocketcreateSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort)org.apache.hadoop.conf.ConfigurationgetConf()voidsetConf(org.apache.hadoop.conf.Configuration conf)-
Methods inherited from class javax.net.SocketFactory
getDefault
-
-
-
-
Method Detail
-
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress addr, int port)
- Specified by:
createSocketin classSocketFactory
-
createSocket
public Socket createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort)
- Specified by:
createSocketin classSocketFactory
-
createSocket
public Socket createSocket(String host, int port)
- Specified by:
createSocketin classSocketFactory
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHostAddr, int localPort)
- Specified by:
createSocketin classSocketFactory
-
-