org.gudy.azureus2.core3.tracker.client.impl
Class TRTrackerScraperImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.tracker.client.impl.TRTrackerScraperImpl
All Implemented Interfaces:
TRTrackerScraper

public class TRTrackerScraperImpl
extends Object
implements TRTrackerScraper


Field Summary
 
Fields inherited from interface org.gudy.azureus2.core3.tracker.client.TRTrackerScraper
REFRESH_MINIMUM_SECS
 
Constructor Summary
protected TRTrackerScraperImpl()
           
 
Method Summary
 void addListener(TRTrackerScraperListener l)
           
static TRTrackerScraperImpl create()
           
 TRTrackerScraperClientResolver getClientResolver()
           
 String[] getEnabledNetworks(HashWrapper hash)
           
 Object[] getExtensions(HashWrapper hash)
           
 boolean isNetworkEnabled(HashWrapper hash, URL url)
           
 boolean isTorrentScrapable(HashWrapper hash)
           
 TRTrackerScraperResponse peekScrape(TOTorrent torrent, URL target_url)
           
 boolean redirectTrackerUrl(HashWrapper hash, URL old_url, URL new_url)
           
 void remove(TOTorrent torrent)
           
 void removeListener(TRTrackerScraperListener l)
           
 TRTrackerScraperResponse scrape(TOTorrent torrent)
           
 TRTrackerScraperResponse scrape(TOTorrent torrent, boolean force)
           
 TRTrackerScraperResponse scrape(TOTorrent torrent, URL target_url)
           
 TRTrackerScraperResponse scrape(TOTorrent torrent, URL target_url, boolean force)
           
 TRTrackerScraperResponse scrape(TRTrackerAnnouncer tracker_client)
           
 void scrapeReceived(TRTrackerScraperResponse response)
           
 void setClientResolver(TRTrackerScraperClientResolver resolver)
           
 void setScrape(TOTorrent torrent, URL target_url, DownloadScrapeResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRTrackerScraperImpl

protected TRTrackerScraperImpl()
Method Detail

create

public static TRTrackerScraperImpl create()

scrape

public TRTrackerScraperResponse scrape(TOTorrent torrent)
Specified by:
scrape in interface TRTrackerScraper

scrape

public TRTrackerScraperResponse scrape(TOTorrent torrent,
                                       URL target_url)
Specified by:
scrape in interface TRTrackerScraper

scrape

public TRTrackerScraperResponse scrape(TOTorrent torrent,
                                       boolean force)
Specified by:
scrape in interface TRTrackerScraper

setScrape

public void setScrape(TOTorrent torrent,
                      URL target_url,
                      DownloadScrapeResult result)
Specified by:
setScrape in interface TRTrackerScraper

scrape

public TRTrackerScraperResponse scrape(TOTorrent torrent,
                                       URL target_url,
                                       boolean force)

peekScrape

public TRTrackerScraperResponse peekScrape(TOTorrent torrent,
                                           URL target_url)
Specified by:
peekScrape in interface TRTrackerScraper

scrape

public TRTrackerScraperResponse scrape(TRTrackerAnnouncer tracker_client)
Specified by:
scrape in interface TRTrackerScraper

remove

public void remove(TOTorrent torrent)
Specified by:
remove in interface TRTrackerScraper

scrapeReceived

public void scrapeReceived(TRTrackerScraperResponse response)

setClientResolver

public void setClientResolver(TRTrackerScraperClientResolver resolver)
Specified by:
setClientResolver in interface TRTrackerScraper

getClientResolver

public TRTrackerScraperClientResolver getClientResolver()

isTorrentScrapable

public boolean isTorrentScrapable(HashWrapper hash)

isNetworkEnabled

public boolean isNetworkEnabled(HashWrapper hash,
                                URL url)

getEnabledNetworks

public String[] getEnabledNetworks(HashWrapper hash)

getExtensions

public Object[] getExtensions(HashWrapper hash)

redirectTrackerUrl

public boolean redirectTrackerUrl(HashWrapper hash,
                                  URL old_url,
                                  URL new_url)

addListener

public void addListener(TRTrackerScraperListener l)
Specified by:
addListener in interface TRTrackerScraper

removeListener

public void removeListener(TRTrackerScraperListener l)
Specified by:
removeListener in interface TRTrackerScraper