|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.directory.ldap.dns.DNSServiceEntry
public class DNSServiceEntry
Encapsulates a hostname and port.
Constructor Summary | |
---|---|
DNSServiceEntry(String host,
int port,
int priority,
int weight)
|
Method Summary | |
---|---|
int |
compareTo(DNSServiceEntry o)
|
boolean |
equals(Object o)
|
String |
getHost()
Returns the hostname. |
int |
getPort()
Returns the port. |
int |
getPriority()
Get the priority of this DNS entry, descending priority 0(highest)..Integer.MAX_VALUE(lowest) |
int |
getWeight()
Get the weight of this DNS entry to compare entries with equal priority, ascending weight 0(lowest)..Integer.MAX_VALUE(highest) |
int |
hashCode()
|
String |
toString()
Return the hostname in the form (hostname:port) |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DNSServiceEntry(String host, int port, int priority, int weight)
Method Detail |
---|
public int getPriority()
public int getWeight()
public String getHost()
public int getPort()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(DNSServiceEntry o)
compareTo
in interface Comparable<DNSServiceEntry>
Comparable.compareTo(java.lang.Object)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |