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) |
long |
getPathExpireSeconds() |
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) throws IOException
addr - The inet address to use.conf - The client configuration.IOExceptionpublic org.apache.hadoop.net.unix.DomainSocket createSocket(DomainSocketFactory.PathInfo info, int socketTimeout)
public void disableShortCircuitForPath(String path)
public void disableDomainSocketPath(String path)
@VisibleForTesting public void clearPathMap()
public long getPathExpireSeconds()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.