|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.SrvCandidateProvider
public class SrvCandidateProvider
Generic class for accessing "candidate" URLs for a service to use that performs lookups using DNS SRV records. These are known to occasionally fail, so this class will keep trying.
| Constructor Summary | |
|---|---|
SrvCandidateProvider(SrvUtil srvUtil,
String srvAddress)
Constructs a new registrar candidate provider. |
|
SrvCandidateProvider(SrvUtil srvUtil,
String srvAddress,
InetSocketAddress defaultAddress)
Constructs a new registrar candidate provider. |
|
| Method Summary | |
|---|---|
InetSocketAddress |
getCandidate()
Accessor for a single candidate. |
Collection<InetSocketAddress> |
getCandidates()
Accessor for the Collection of candidates for the task at hand. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrvCandidateProvider(SrvUtil srvUtil,
String srvAddress)
srvUtil - The SRV lookup utility class.srvAddress - The address for looking up DNS SRV records.
public SrvCandidateProvider(SrvUtil srvUtil,
String srvAddress,
InetSocketAddress defaultAddress)
srvUtil - The SRV lookup utility class.srvAddress - The address for looking up DNS SRV records.defaultAddress - The address to use if SRV lookups fail. If you
set this to null, we'll just keep trying SRV lookups.| Method Detail |
|---|
public Collection<InetSocketAddress> getCandidates()
CandidateProviderCollection of candidates for the task at hand.
getCandidates in interface CandidateProvider<InetSocketAddress>Collection of candidates for the task at hand.public InetSocketAddress getCandidate()
CandidateProvider
getCandidate in interface CandidateProvider<InetSocketAddress>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||