org.apache.hadoop.hdfs.shortcircuit
Class DomainSocketFactory

java.lang.Object
  extended by org.apache.hadoop.hdfs.shortcircuit.DomainSocketFactory

public class DomainSocketFactory
extends Object


Nested Class Summary
static class DomainSocketFactory.PathInfo
           
static class DomainSocketFactory.PathState
           
 
Constructor Summary
DomainSocketFactory(DFSClient.Conf conf)
           
 
Method Summary
 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, DFSClient.Conf conf)
          Get information about a domain socket path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainSocketFactory

public DomainSocketFactory(DFSClient.Conf conf)
Method Detail

getPathInfo

public DomainSocketFactory.PathInfo getPathInfo(InetSocketAddress addr,
                                                DFSClient.Conf conf)
Get information about a domain socket path.

Parameters:
addr - The inet address to use.
conf - The client configuration.
Returns:
Information about the socket path.

createSocket

public org.apache.hadoop.net.unix.DomainSocket createSocket(DomainSocketFactory.PathInfo info,
                                                            int socketTimeout)

disableShortCircuitForPath

public void disableShortCircuitForPath(String path)

disableDomainSocketPath

public void disableDomainSocketPath(String path)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.