Class TrackerChecker

    • Field Detail

      • LOGID

        private static final LogIDs LOGID
      • tracker_timer

        private static final Timer tracker_timer
      • trackers

        private final java.util.HashMap trackers
        List of Trackers. key = Tracker URL string value = TrackerStatus object
      • trackers_mon

        private final AEMonitor trackers_mon
      • scraper

        private final TRTrackerBTScraperImpl scraper
        TRTrackerScraperImpl object associated with this object.
      • nextScrapeCheckOn

        private long nextScrapeCheckOn
    • Constructor Detail

    • Method Detail

      • getHashData

        protected TRTrackerScraperResponseImpl getHashData​(TRTrackerAnnouncer tracker_client)
        Retrieves the last cached Scraper Response based on a TRTrackerClient's current URL (announce-list entry or announce) and its torrent's hash.
        Returns:
        The cached scrape response. Can be null.
      • getHashData

        protected TRTrackerScraperResponseImpl getHashData​(TOTorrent torrent,
                                                           java.net.URL target_url)
        Retrieves the last cached Scraper Response based on a TOTorrent's Announce URL (not announce-list) and hash.
        Returns:
        The cached scrape response. Can be null.
      • getHashData

        protected TRTrackerScraperResponseImpl getHashData​(java.net.URL trackerUrl,
                                                           HashWrapper hash)
        Retrieves the last cached Scraper Response for the supplied tracker URL and hash. If no cache has exists for the hash, one is created.
        Returns:
        The cached scrape response. Can be null.
      • removeHash

        protected void removeHash​(TOTorrent torrent)
        Removes the scrape task and data associated with the TOTorrent's Announce URL, announce-list data and hash.
      • removeHash

        protected void removeHash​(java.lang.String trackerUrl,
                                  HashWrapper hash)
        Removes the scrape task and data associated with the supplied tracker URL and torrent hash.
      • syncUpdate

        protected void syncUpdate​(TOTorrent torrent,
                                  java.net.URL target_url)
      • runScrapes

        private void runScrapes()
      • getNextScrapeCheckOn

        public long getNextScrapeCheckOn()