public class DomainSocketFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DomainSocketFactory.PathInfo |
static class |
DomainSocketFactory.PathState |
Constructor and Description |
---|
DomainSocketFactory(DfsClientConf.ShortCircuitConf conf) |
Modifier and Type | Method and Description |
---|---|
void |
clearPathMap() |
org.apache.hadoop.net.unix.DomainSocket |
createSocket(DomainSocketFactory.PathInfo info,
int socketTimeout) |
void |
disableDomainSocketPath(String path) |
void |
disableShortCircuitForPath(String path) |
DomainSocketFactory.PathInfo |
getPathInfo(InetSocketAddress addr,
DfsClientConf.ShortCircuitConf conf)
Get information about a domain socket path.
|
public DomainSocketFactory(DfsClientConf.ShortCircuitConf conf)
public DomainSocketFactory.PathInfo getPathInfo(InetSocketAddress addr, DfsClientConf.ShortCircuitConf conf)
addr
- The inet address to use.conf
- The client configuration.public org.apache.hadoop.net.unix.DomainSocket createSocket(DomainSocketFactory.PathInfo info, int socketTimeout)
public void disableShortCircuitForPath(String path)
public void disableDomainSocketPath(String path)
public void clearPathMap()
Copyright © 2018 Apache Software Foundation. All Rights Reserved.