Class DomainSocketFactory
java.lang.Object
org.apache.hadoop.hdfs.shortcircuit.DomainSocketFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.hadoop.net.unix.DomainSocketcreateSocket(DomainSocketFactory.PathInfo info, int socketTimeout) voidvoidlongGet information about a domain socket path.
-
Constructor Details
-
DomainSocketFactory
-
-
Method Details
-
getPathInfo
public DomainSocketFactory.PathInfo getPathInfo(InetSocketAddress addr, DfsClientConf.ShortCircuitConf conf) throws IOException Get information about a domain socket path.- Parameters:
addr- The inet address to use.conf- The client configuration.- Returns:
- Information about the socket path.
- Throws:
IOException
-
createSocket
public org.apache.hadoop.net.unix.DomainSocket createSocket(DomainSocketFactory.PathInfo info, int socketTimeout) -
disableShortCircuitForPath
-
disableDomainSocketPath
-
clearPathMap
@VisibleForTesting public void clearPathMap() -
getPathExpireSeconds
public long getPathExpireSeconds()
-