APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.jndi.dns

pack-priv Class ZoneNode

extends NameNode
Class Inheritance
Imports
java.lang.ref.SoftReference, java.util.Date, .Vector

ZoneNode extends NameNode to represent a tree of the zones in the DNS namespace, along with any intermediate nodes between zones. A ZoneNode that represents a zone may be "populated" with a NameNode tree containing the zone's contents.

A populated zone's contents will be flagged as having expired after the time specified by the minimum TTL value in the zone's SOA record.

Since zone cuts aren't directly modeled by a tree of ZoneNodes, ZoneNode.isZoneCut() always returns false.

The synchronization strategy is documented in DnsContext.java.

The zone's contents are accessed via a soft reference, so its heap space may be reclaimed when necessary. The zone may be repopulated later.

Author
Scott Seligman

Field Summary

Modifier and TypeField and Description
private SoftReference<NameNode>
private Date
private long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv synchronized void
pack-priv synchronized NameNode
pack-priv ZoneNode
private static long
private static long
pack-priv synchronized boolean
pack-priv synchronized boolean
protected NameNode
pack-priv NameNode
private void
setExpiration(long secsToExpiration)

Inherited from com.sun.jndi.dns.NameNode:
adddepthgetgetgetChildrengetLabelisZoneCutsetZoneCut

Field Detail

contentsRefback to summary
private SoftReference<NameNode> contentsRef
expirationback to summary
private Date expiration
serialNumberback to summary
private long serialNumber

Constructor Detail

ZoneNodeback to summary
pack-priv ZoneNode(String label)

Method Detail

compareSerialNumberToback to summary
pack-priv int compareSerialNumberTo(ResourceRecord soa)
depopulateback to summary
pack-priv synchronized void depopulate()
getContentsback to summary
pack-priv synchronized NameNode getContents()
getDeepestPopulatedback to summary
pack-priv ZoneNode getDeepestPopulated(DnsName fqdn)
getMinimumTtlback to summary
private static long getMinimumTtl(ResourceRecord soa)
getSerialNumberback to summary
private static long getSerialNumber(ResourceRecord soa)
isExpiredback to summary
pack-priv synchronized boolean isExpired()
isPopulatedback to summary
pack-priv synchronized boolean isPopulated()
newNameNodeback to summary
protected NameNode newNameNode(String label)

Overrides com.sun.jndi.dns.NameNode.newNameNode.

populateback to summary
pack-priv NameNode populate(DnsName zone, ResourceRecords rrs)
setExpirationback to summary
private void setExpiration(long secsToExpiration)