|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDNS.ZoneData
Data structure that holds information about zones. In particular,
holds a list of RRGroups which hold ResourceRecords.
RRGroups are stored in Canonical Order (see RFC 2673).
| Field Summary | |
java.util.HashSet |
authoritativeRRGroups
List of all names we are authoritative for, as defined by the AUTH keywods in the .dns file. |
java.util.LinkedList |
names
List of RRGroups stored in canonical order. |
java.lang.String |
zone
The zone this ZoneData object applies to. |
| Constructor Summary | |
ZoneData(java.lang.String zone)
Constructor that specifies the zone and initializes the List for RRGroups. |
|
| Method Summary | |
void |
addRR(java.lang.String name,
ResourceRecord rr,
boolean authoratativeKnowledge)
Add a Resource Record to our database by finding the correct RRGroup and adding it to that group. |
void |
addRRGroup(java.lang.String name,
boolean authoritativeKnowledge)
Create and add an RRGroup that is defined by a certain name. |
void |
adjustSIGRecords()
|
boolean |
authoritativeFor(java.lang.String name)
Returns whether or not we are authoritative for this name. |
int |
getCannonicalIndex(java.lang.String name)
Computes the Cannonical index of an RRGroup in our list of RRGroups. |
RRGroup |
getRRGroup(java.lang.String name)
Method to retrieve an RRGroup with a certain name. |
RRGroup |
getRRGroup(java.lang.String type,
java.lang.String name)
Return the RRGropu that has a certain name and a Resource Record of a given type. |
java.util.LinkedList |
getRRGroups(java.lang.String type)
Search for all RRGroups that have contain a ResourceRecord of a specified type. |
boolean |
isCannonicallyBefore(java.lang.String first,
java.lang.String second)
Determines if a record's name should come before another's according to Cannonical Ordering. |
java.lang.String |
toString()
Standard toString method -- prints out each RRGroup (which prints out each RR) |
void |
updateDurations(long time)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.util.LinkedList names
public java.lang.String zone
public java.util.HashSet authoritativeRRGroups
| Constructor Detail |
public ZoneData(java.lang.String zone)
zone - The name of this zone| Method Detail |
public boolean authoritativeFor(java.lang.String name)
public void addRRGroup(java.lang.String name,
boolean authoritativeKnowledge)
name - The name of the RRGroup to add.public java.util.LinkedList getRRGroups(java.lang.String type)
type - The type of record the RRGroup must have.
public RRGroup getRRGroup(java.lang.String type,
java.lang.String name)
type - The type of the RR that the returned RRGroup must containname - The name of the RRGroup tha is returned.
name and an RR of type type.
Null if no such RRGroup exists.public RRGroup getRRGroup(java.lang.String name)
name - The name the RRGroup should have
public int getCannonicalIndex(java.lang.String name)
name - The name of the RRGroup.
public boolean isCannonicallyBefore(java.lang.String first,
java.lang.String second)
first - the name of the frist RRGroup we are checkingsecond - the name of the second RRGroup we are checking
public void addRR(java.lang.String name,
ResourceRecord rr,
boolean authoratativeKnowledge)
name - The name of the RRrr - The actual RR.public void adjustSIGRecords()
public void updateDurations(long time)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||