All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.util.InetAddressCache
java.lang.Object
|
+----sun.server.util.InetAddressCache
- public class InetAddressCache
- extends Object
This class caches the results of java.net.InetAddress.getHostAddress()
for various InetAddresses. It is purely a workaround for the poor
performance of getHostAddress().
-
InetAddressCache(long)
- Constructor for the InetAddressCache
-
lookup(InetAddress)
- Get the Dotted IP String representation of the InetAddress if it is
present in the cache or if the cache chooses to compute it.
-
rowLookup(int, InetAddress)
-
InetAddressCache
public InetAddressCache(long size)
- Constructor for the InetAddressCache
- Parameters:
- size - - the size of the cache in bytes
rowLookup
protected InetAddressCache. InetCacheEntry rowLookup(int row,
InetAddress target)
lookup
public String lookup(InetAddress addr)
- Get the Dotted IP String representation of the InetAddress if it is
present in the cache or if the cache chooses to compute it.
- Parameters:
- addr - - the InetAddress to be looked up
- Returns:
- the String representation of the InetAddress or null if a miss
and the cache declined to compute it.
All Packages Class Hierarchy This Package Previous Next Index