org.apache.whirr.net
Class FastDnsResolver
java.lang.Object
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
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 |
FastDnsResolver
public FastDnsResolver()
FastDnsResolver
public FastDnsResolver(int timeoutInSeconds)
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-2013 The Apache Software Foundation. All Rights Reserved.