Package com.mysql.cj.util
Class DnsSrv
java.lang.Object
com.mysql.cj.util.DnsSrv
public class DnsSrv
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDnsSrv.SrvRecord -
Constructor Summary
Constructors Constructor Description DnsSrv() -
Method Summary
Modifier and Type Method Description static java.util.List<DnsSrv.SrvRecord>lookupSrvRecords(java.lang.String serviceName)static java.util.List<DnsSrv.SrvRecord>sortSrvRecords(java.util.List<DnsSrv.SrvRecord> srvRecords)Sort a list of DNS SRV records according to the sorting rules described in rfc2782.
-
Constructor Details
-
DnsSrv
public DnsSrv()
-
-
Method Details
-
lookupSrvRecords
public static java.util.List<DnsSrv.SrvRecord> lookupSrvRecords(java.lang.String serviceName) throws javax.naming.NamingException- Throws:
javax.naming.NamingException
-
sortSrvRecords
public static java.util.List<DnsSrv.SrvRecord> sortSrvRecords(java.util.List<DnsSrv.SrvRecord> srvRecords)Sort a list of DNS SRV records according to the sorting rules described in rfc2782.- Parameters:
srvRecords- the list ofDnsSrv.SrvRecords to sort.- Returns:
- a new list of sorted
DnsSrv.SrvRecords.
-