org.apache.whirr.net
Class FastDnsResolver

java.lang.Object
  extended by org.apache.whirr.net.FastDnsResolver
All Implemented Interfaces:
com.google.common.base.Function<String,String>, DnsResolver

public class FastDnsResolver
extends Object
implements DnsResolver

Fast DNS resolver


Constructor Summary
FastDnsResolver()
           
FastDnsResolver(int timeoutInSeconds)
           
 
Method Summary
 String apply(String hostIp)
          Resolve the reverse dns name for the given IP address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

FastDnsResolver

public FastDnsResolver()

FastDnsResolver

public FastDnsResolver(int timeoutInSeconds)
Method Detail

apply

public String apply(String hostIp)
Resolve the reverse dns name for the given IP address

Specified by:
apply in interface com.google.common.base.Function<String,String>
Parameters:
hostIp - host IP address
Returns:
the resolved DNS name or in some cases the IP address as a string


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.