org.apache.hadoop.hbase.util
Class DNS

java.lang.Object
  extended by org.apache.hadoop.hbase.util.DNS

@InterfaceAudience.Private
public final class DNS
extends Object

Wrapper around Hadoop's DNS class to hide reflection.


Method Summary
static String getDefaultHost(String strInterface, String nameserver)
          Wrapper around DNS.getDefaultHost(String, String), calling DNS.getDefaultHost(String, String, boolean) when available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultHost

public static String getDefaultHost(String strInterface,
                                    String nameserver)
                             throws UnknownHostException
Wrapper around DNS.getDefaultHost(String, String), calling DNS.getDefaultHost(String, String, boolean) when available.

Parameters:
strInterface - The network interface to query.
nameserver - The DNS host name.
Returns:
The default host names associated with IPs bound to the network interface.
Throws:
UnknownHostException


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.