james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <ser...@lokitech.com>
Subject Re: [PATCH] Upgrade to DnsJava 1.3.1, add DNS Server autodetect, Make use of higher level api
Date Mon, 20 Jan 2003 14:56:02 GMT
Serge Sozonoff wrote:
> Hi Aaron,
> 
> The James DNSServer class has a custom Comparator and does the ordering. It
> returns an ordered list.

Yeah, the DNSServer code uses a Vector as the underlying implementation 
and a custom comparator.  Then all we really need to do is change the 
method contract to maintain that this is a List and not a Collection.

As for SortedSet vs. List, it logically makes more sense to have it as a 
SortedSet since it wouldn't make sense to have multiple MX records to 
the same IP address.  But you never know, I don't think DNS could 
enforce this... I guess we just do extra checks as we add the IP 
addresses and avoid duplication.  I might just make it a List to avoid 
working this out... the benefit of making it a SortedSet seem minimal to me.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/




--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message