net.sf.torrentsniffer.tracker
Interface Tracker

All Known Implementing Classes:
TrackerImpl

public interface Tracker

Represents the Torrent's Tracker.

Author:
Larry Williams

Method Summary
 java.lang.String getAnnounce()
           
 java.lang.String getScrapeUrl()
          Retrieves the scrape url for the tracker.
 TorrentState[] getTrackerState()
          Tries to retrieve the state of all torrents tracked by this server.
 void setAnnounce(java.lang.String url)
           
 

Method Detail

getAnnounce

public java.lang.String getAnnounce()
Returns:
Returns the url.

setAnnounce

public void setAnnounce(java.lang.String url)
Parameters:
url - The url to set.

getTrackerState

public TorrentState[] getTrackerState()
Tries to retrieve the state of all torrents tracked by this server. Uses scraping to do this. Not all trackers support this.

Returns:

getScrapeUrl

public java.lang.String getScrapeUrl()
Retrieves the scrape url for the tracker. Taken from http://groups.yahoo.com/group/BitTorrent/message/3275 Take the tracker url. Find the last '/' in it. If the text immediately following that '/' isn't 'announce' it will be taken as a sign that that tracker doesn't support the scrape convention. If it does, substitute 'scrape' for 'announce' to find the scrape page.

Returns:


Copyright © 2004 Larry Williams. All Rights Reserved.