public class DomainSocketFactory
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DomainSocketFactory.PathInfo |
|
static class |
DomainSocketFactory.PathState |
| Constructor | Description |
|---|---|
DomainSocketFactory(DfsClientConf.ShortCircuitConf conf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearPathMap() |
|
org.apache.hadoop.net.unix.DomainSocket |
createSocket(DomainSocketFactory.PathInfo info,
int socketTimeout) |
|
void |
disableDomainSocketPath(java.lang.String path) |
|
void |
disableShortCircuitForPath(java.lang.String path) |
|
long |
getPathExpireSeconds() |
|
DomainSocketFactory.PathInfo |
getPathInfo(java.net.InetSocketAddress addr,
DfsClientConf.ShortCircuitConf conf) |
Get information about a domain socket path.
|
public DomainSocketFactory(DfsClientConf.ShortCircuitConf conf)
public DomainSocketFactory.PathInfo getPathInfo(java.net.InetSocketAddress addr, DfsClientConf.ShortCircuitConf conf) throws java.io.IOException
addr - The inet address to use.conf - The client configuration.java.io.IOExceptionpublic org.apache.hadoop.net.unix.DomainSocket createSocket(DomainSocketFactory.PathInfo info, int socketTimeout)
public void disableShortCircuitForPath(java.lang.String path)
public void disableDomainSocketPath(java.lang.String path)
@VisibleForTesting public void clearPathMap()
public long getPathExpireSeconds()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.