Package org.apache.hadoop.net
@Public
package org.apache.hadoop.net
Network-related classes.
-
ClassDescriptionThis is a base class for DNS to Switch mappings.A cached implementation of DNSToSwitchMapping that takes an raw DNSToSwitchMapping and stores the resolved network location in a cache.Thrown by
NetUtils.connect(java.net.Socket, java.net.SocketAddress, int)if it times out while connecting to the remote host.A class that provides direct and reverse lookup functionalities, allowing the querying of specific network interfaces or nameservers.DNSDomainNameResolver wraps up the default DNS service for forward/reverse DNS lookup.An interface that must be implemented to allow pluggable DNS-name/IP-address to RackID resolvers.An interface that must be implemented to allow pluggable DNS-name/IP-address to RackID resolvers.This interface provides methods for the failover proxy to get IP addresses of the associated servers (NameNodes, RBF routers etc).This class creates the DomainNameResolver instance based on the config.InnerNode.Factory<N extends InnerNode>InnerNode represents a switch/router of a data center or rack.The class represents a cluster of computer with a tree hierarchical network topology.The class extends NetworkTopology to represents a cluster of computer with a 4-layers hierarchical network topology.The interface defines a node in a network topology.A base class that implements interface NodeThis class implements theDNSToSwitchMappinginterface using a script configured via theCommonConfigurationKeysPublic.NET_TOPOLOGY_SCRIPT_FILE_NAME_KEYoption.This is the uncached script mapping that is fed into the cache managed by the superclassCachedDNSToSwitchMappingThis class extends ScriptBasedMapping class and implements theDNSToSwitchMappingWithDependencyinterface using a script configured via theCommonConfigurationKeysPublic.NET_DEPENDENCY_SCRIPT_FILE_NAME_KEYoption.This implements an input stream that can have a timeout while reading.A wrapper stream around a socket which allows setting of its timeout.This implements an output stream that can have a timeout while writing.Specialized SocketFactory to create sockets with a SOCKS proxySpecialized SocketFactory to create sockets with a SOCKS proxySimpleDNSToSwitchMappingimplementation that reads a 2 column text file.