Methods Summary |
---|
public void | addListener(TRTrackerScraperListener l)
listeners.addListener(l);
|
public static org.gudy.azureus2.core3.tracker.client.impl.TRTrackerScraperImpl | create()
try{
class_mon.enter();
if ( singleton == null ){
singleton = new TRTrackerScraperImpl();
}
return( singleton );
}finally{
class_mon.exit();
}
|
public java.lang.Object[] | getExtensions(HashWrapper hash)
if ( client_resolver == null ){
return( null );
}
return( client_resolver.getExtensions( hash ));
|
public boolean | isNetworkEnabled(HashWrapper hash, java.net.URL url)
if ( client_resolver == null ){
return( false );
}
return( client_resolver.isNetworkEnabled( hash, url ));
|
public boolean | isTorrentDownloading(HashWrapper hash)
if ( client_resolver == null ){
return( false );
}
int state = client_resolver.getStatus( hash );
return( state == TRTrackerScraperClientResolver.ST_RUNNING );
|
public boolean | isTorrentRunning(HashWrapper hash)
if ( client_resolver == null ){
return( false );
}
int state = client_resolver.getStatus( hash );
return( state == TRTrackerScraperClientResolver.ST_RUNNING || state == TRTrackerScraperClientResolver.ST_QUEUED );
|
public boolean | redirectTrackerUrl(HashWrapper hash, java.net.URL old_url, java.net.URL new_url)
return( client_resolver.redirectTrackerUrl( hash, old_url, new_url ));
|
public void | remove(TOTorrent torrent)
if ( TorrentUtils.isDecentralised( torrent )){
dht_scraper.remove( torrent );
}else{
bt_scraper.remove( torrent );
}
|
public void | removeListener(TRTrackerScraperListener l)
listeners.removeListener(l);
|
public TRTrackerScraperResponse | scrape(TOTorrent torrent)
return( scrape( torrent, false ));
|
public TRTrackerScraperResponse | scrape(TOTorrent torrent, java.net.URL target_url)
return( scrape( torrent, target_url, false ));
|
public TRTrackerScraperResponse | scrape(TOTorrent torrent, boolean force)
return( scrape( torrent, null, force ));
|
public TRTrackerScraperResponse | scrape(TOTorrent torrent, java.net.URL target_url, boolean force)
if (torrent == null ){
return null;
}
if ( TorrentUtils.isDecentralised( torrent )){
return( dht_scraper.scrape( torrent, target_url, force ));
}else{
return( bt_scraper.scrape( torrent, target_url, force ));
}
|
public TRTrackerScraperResponse | scrape(TRTrackerAnnouncer tracker_client)
TOTorrent torrent = tracker_client.getTorrent();
if ( TorrentUtils.isDecentralised( torrent )){
return( dht_scraper.scrape( tracker_client ));
}else{
return( bt_scraper.scrape( tracker_client ));
}
|
public void | scrapeReceived(TRTrackerScraperResponse response)
listeners.dispatch( LDT_SCRAPE_RECEIVED, response );
|
public void | setClientResolver(TRTrackerScraperClientResolver resolver)
client_resolver = resolver;
|
public void | setScrape(TOTorrent torrent, java.net.URL url, org.gudy.azureus2.plugins.download.DownloadScrapeResult result)
if ( torrent != null ){
if ( TorrentUtils.isDecentralised( torrent )){
dht_scraper.setScrape( torrent, url, result );
}else{
bt_scraper.setScrape( torrent, url, result );
}
}
|