org.apache.accumulo.fate.util
Class AddressUtil

java.lang.Object
  extended by org.apache.accumulo.fate.util.AddressUtil

public class AddressUtil
extends Object


Constructor Summary
AddressUtil()
           
 
Method Summary
static int getAddressCacheNegativeTtl(UnknownHostException originalException)
          Fetch the security value that determines how long DNS failures are cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressUtil

public AddressUtil()
Method Detail

getAddressCacheNegativeTtl

public static int getAddressCacheNegativeTtl(UnknownHostException originalException)
Fetch the security value that determines how long DNS failures are cached. Looks up the security property 'networkaddress.cache.negative.ttl'. Should that fail returns the default value used in the Oracle JVM 1.4+, which is 10 seconds.

Parameters:
originalException - the host lookup that is the source of needing this lookup. maybe be null.
Returns:
positive integer number of seconds
Throws:
IllegalArgumentException - if dns failures are cached forever
See Also:
InetAddress


Copyright © 2015 Apache Accumulo Project. All rights reserved.