Class TrackerFactory


  • public class TrackerFactory
    extends Object
    • Method Detail

      • getTrackerFor

        public Optional<ITracker> getTrackerFor​(String trackerUrl)
        Either creates or returns the tracker implementation for the given url
        Parameters:
        trackerUrl - The url (including protocol) at which the tracker is available
        Returns:
        The tracker instance which handles the connection to the given url
        Throws:
        IllegalArgumentException - When the given tracker URL doesn't contain a protocol definition or an incomplete definition.
      • getTrackersHavingTorrent

        public List<ITracker> getTrackersHavingTorrent​(Torrent torrent)