org.littleshoot.util
Class DnsSrvCandidateProvider

java.lang.Object
  extended by org.littleshoot.util.DnsSrvCandidateProvider
All Implemented Interfaces:
CandidateProvider<InetSocketAddress>

public class DnsSrvCandidateProvider
extends Object
implements CandidateProvider<InetSocketAddress>

Candidate provider that uses native commands to lookup SRV records.


Constructor Summary
DnsSrvCandidateProvider(String lookupName)
          Creates a new DNS candidate provider with the specified SRV name to lookup.
 
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

DnsSrvCandidateProvider

public DnsSrvCandidateProvider(String lookupName)
Creates a new DNS candidate provider with the specified SRV name to lookup.

Parameters:
lookupName - The SRV name to lookup.
Method Detail

getCandidate

public InetSocketAddress getCandidate()
Description copied from interface: CandidateProvider
Accessor for a single candidate.

Specified by:
getCandidate in interface CandidateProvider<InetSocketAddress>
Returns:
A single candidate.

getCandidates

public Collection<InetSocketAddress> getCandidates()
Description copied from interface: CandidateProvider
Accessor for the Collection of candidates for the task at hand.

Specified by:
getCandidates in interface CandidateProvider<InetSocketAddress>
Returns:
The Collection of candidates for the task at hand.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.