java.lang.Object
org.klomp.snark.Tracker

public class Trackerextends Object
Represents a known BitTorrent tracker with its configuration and capabilities.

This immutable class stores tracker information including:

  • Human-readable name for display
  • Announce URL for torrent registrations
  • Base web URL for tracker web interfaces
  • Capability flags (e.g., supports detailed responses)

Trackers are used by TrackerClient to announce torrent status and discover peers.

  • Field Details

    • name

      public final String name
      The tracker's host name, also used to infer whether it serves scrape details.
    • announceURL

      public final String announceURL
      The URL a client posts its infohash to for peer discovery.
    • baseURL

      public final String baseURL
      The tracker's web site, shown as a link in the config page; null when it has none.
    • supportsDetails

      public final boolean supportsDetails
      True for the hosts known to serve a per-torrent details page.
  • Constructor Details

    • Tracker

      public Tracker(String name, String announceURL, String baseURL)
      Create a tracker.
      Parameters:
      name - the tracker's host name, also used to infer whether it serves scrape details
      announceURL - the URL a client posts its infohash to for peer discovery
      baseURL - The web site, may be null