Package org.jgroups.protocols.dns
Class DefaultDNSResolver
- java.lang.Object
-
- org.jgroups.protocols.dns.DefaultDNSResolver
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,DNSResolver
- Direct Known Subclasses:
AddressedDNSResolver
public class DefaultDNSResolver extends java.lang.Object implements DNSResolver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jgroups.protocols.dns.DNSResolver
DNSResolver.DNSRecordType
-
-
Constructor Summary
Constructors Constructor Description DefaultDNSResolver(java.lang.String dnsContextFactory, java.lang.String dnsAddress)
DefaultDNSResolver(javax.naming.directory.DirContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected javax.naming.directory.DirContext
getDnsContext()
protected java.util.List<Address>
resolveAEntries(java.lang.String dnsQuery)
protected java.util.List<Address>
resolveAEntries(java.lang.String dnsQuery, java.lang.String srcPort)
java.util.List<Address>
resolveIps(java.lang.String dnsQuery, DNSResolver.DNSRecordType recordType)
protected java.util.List<Address>
resolveSRVEntries(java.lang.String dnsQuery)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceDNSResolver
-
resolveIps
public java.util.List<Address> resolveIps(java.lang.String dnsQuery, DNSResolver.DNSRecordType recordType)
- Specified by:
resolveIps
in interfaceDNSResolver
-
getDnsContext
protected javax.naming.directory.DirContext getDnsContext()
-
resolveSRVEntries
protected java.util.List<Address> resolveSRVEntries(java.lang.String dnsQuery)
-
resolveAEntries
protected java.util.List<Address> resolveAEntries(java.lang.String dnsQuery)
-
resolveAEntries
protected java.util.List<Address> resolveAEntries(java.lang.String dnsQuery, java.lang.String srcPort)
-
-