Package org.nuxeo.ecm.directory.ldap.dns
Class DNSServiceEntry
java.lang.Object
org.nuxeo.ecm.directory.ldap.dns.DNSServiceEntry
- All Implemented Interfaces:
Comparable<DNSServiceEntry>
Encapsulates a hostname and port.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getHost()
Returns the hostname.int
getPort()
Returns the port.int
Get the priority of this DNS entry, descending priority 0(highest)..Integer.MAX_VALUE(lowest)int
Get the weight of this DNS entry to compare entries with equal priority, ascending weight 0(lowest)..Integer.MAX_VALUE(highest)int
hashCode()
toString()
Return the hostname in the form (hostname:port)
-
Constructor Details
-
DNSServiceEntry
-
-
Method Details
-
getPriority
public int getPriority()Get the priority of this DNS entry, descending priority 0(highest)..Integer.MAX_VALUE(lowest) -
getWeight
public int getWeight()Get the weight of this DNS entry to compare entries with equal priority, ascending weight 0(lowest)..Integer.MAX_VALUE(highest) -
getHost
Returns the hostname. -
getPort
public int getPort()Returns the port. -
toString
Return the hostname in the form (hostname:port) -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<DNSServiceEntry>
- See Also:
-